Skip to content

[TODO] Change how custom hooks listen for changes #3

@Sawtaytoes

Description

@Sawtaytoes

Currently, OneForm uses refs to get functions in change handlers embedded into props passed to hooks.

We need to change that so the hook itself returns a subscriber function that goes in a useEffect. That will clear up the problem of needing methods before they're defined.

The change is absolutely required for concurrent mode.

Any loose ref assignments should also be encapsulated in useEffect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions