Skip to content

Add configurable initial merge strategies #5

@agilgur5

Description

@agilgur5

Per my comments in #1 (comment), should support something like redux-persist's State Reconcilers as merge strategies. This is basically just to handle state created in .create(...), unless persist is called after some actions have been performed (which wouldn't be the standard usage, but is possible 🤷‍♂).

applySnapshot is equivalent to hardSet but with the model's defaults added. Users should be able to configure if they want a different merge strategy like a shallow merge (autoMergeLevel1).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions