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
Now that jsx components data is split between props and state, it's harder to keep the feature of sync methods working for all data. For example, let's say you had a visible prop as well, then when would you expect syncVisible to be called? Just for the one in props, just for the one in state, or for both of them (with a flag maybe)?
When I did the separation I ended up choosing to keep the sync methods working just for props, since you already have more control about when state changes, as it only happens internally. You can see that it would work if this was using a prop instead.
Do you think this would be better for jsx components if it worked differently? If so, let me know and we can change so it has the best behavior for jsx use case.
I would expect syncVisible_ to be called anytime the toggle is clicked. Currently it's never being called.
Let me know if you have any questions.
Thanks.
The text was updated successfully, but these errors were encountered: