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
Follow up to a discussion thread on #294 and a Messenger chat with @gaearon.
The current UI for editing props/state/hooks values has a couple of shortcomings:
strings/numeric values are sometimes of an unclear type. (DevTools uses the correct <input type> but this is subtle. Showing e.g. quotation marks around strings could be more helpful.
null initial values can only become strings at the moment. (DevTools does not attempt to parse numeric or boolean values and change the input type. If it did, we would probably also need to enable a way for you to opt back out of that input type somehow in case it was incorrect.)
fields that maybe support multiple types (e.g. string | number) are locked into a single type (whichever type they happen to be initially).
Additional quirks that might be worth ironing out:
Non-editable strings are currently wrapped in quotation marks but editable ones aren't.
Follow up to a discussion thread on #294 and a Messenger chat with @gaearon.
The current UI for editing props/state/hooks values has a couple of shortcomings:
<input type>
but this is subtle. Showing e.g. quotation marks around strings could be more helpful.null
initial values can only become strings at the moment. (DevTools does not attempt to parse numeric or boolean values and change the input type. If it did, we would probably also need to enable a way for you to opt back out of that input type somehow in case it was incorrect.)Additional quirks that might be worth ironing out:
Originally reported via bvaughn/react-devtools-experimental#321
The text was updated successfully, but these errors were encountered: