You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For me the error message looks something unclear and I don't understand what should be done (in fact it was just typo for me, I didn't know that this construction with hash options can only be used with default option)
There are 2 solutions in my opinion:
Adjust error message something like: Value "turboFrameName" with type "string" missing default value. Given default value: "undefined"
Allow both constructions to be used visa-versa, with and without default value, and specify default value only if you need one, but not throw uncaught error
The text was updated successfully, but these errors were encountered:
Makes sense, we don't set any value on the html, so the only value present is the default in the controller.
I tried then passing the values from the template:
<div data-controller="turbo-tracker"
data-turbo-tracker-turbo-frame-name-a-value="A from template works"
data-turbo-tracker-turbo-frame-name-b-value="B from template works"
data-turbo-tracker-turbo-frame-name-c-value="C from template works"
></div>
The results were as expected:
A: A from template works
B: B from template works
C: C from template works
When specifying values on controller, there's in console very unclear message that can waste your time debugging.
So passing the following value in controller
will produce
Actually I thought that those two constructions are identical
plain type and the above specified as hash
For me the error message looks something unclear and I don't understand what should be done (in fact it was just typo for me, I didn't know that this construction with hash options can only be used with default option)
There are 2 solutions in my opinion:
The text was updated successfully, but these errors were encountered: