Skip to content

Add dependencies option when to reinitialize a elmish component #58

@atheck

Description

@atheck

Now, the component will only be initialized once. When a prop changes the component does nothing by default. But there are scenarios where a prop change should reinitialize the state. This could be an array of values like the dependencies of useEffect hook.

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