Skip to content

DUIX doesn't work in React with Hooks #27

Description

@BrodaNoel

If you are doing:

useEffect(() => {
  duix.subscribe('user', setUser)
}, []);

The setUser function is going to get old in the following render.
We have to find a way to keep it simple, but fix it.

I think we should not create a useDuix(), because the idea is to keep DUIX as a state manager based on events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions