persist-and-sync
persist-and-sync copied to clipboard
Throw Error when store name is changed.
Is your feature request related to a problem? Please describe. The name of the persistent store can not be changed, as it is used before the state is loaded.
Describe the solution you'd like
- Create an interface for
__persistNSyncOptions
. This interface should not includename
. - Throw an error when
name
is changed. - Always read
option.name
and notprevState.__persistNSyncOptions.name
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.