Skip to content

internal _use_input_type hook keeps old functions #932

@iisakkirotko

Description

@iisakkirotko

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions