Skip to content

combine two or more stores #24

Description

@suenot

Is your feature request related to a problem? Please describe.

I want to store data for long time in sessionStorage, but take init values (or reinit values) from queryStore.

Describe the solution you'd like

<CombineStoreProvider stores={{localStore, queryStore}}>

const [combine, setCombine] = useCombineStore('demo', 5);

or

const [combine, setCombine] = useCombineStore('demo', 5, stores={localStore, queryStore});

Describe alternatives you've considered

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions