-
Notifications
You must be signed in to change notification settings - Fork 184
internal _use_input_type hook keeps old functions #932
Copy link
Copy link
Closed
Description
Expected Behavior
If I change a variable that is used in one of the functions given to _use_input_type, I expect the output from the hook to change. However, as of current this isn't supported
Current Behavior
If I change one of the variables, the old value is still used within the hook.
Steps to Reproduce the Problem
Go to
https://py.cafe/iisakkirotko/solara-date-format-changer
And click the button
Fix
We should add a dependency array as an argument to _use_input_type, so that we could remove and re-run the effect with the new values when one of the used arguments changes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels