react18-tools / react18-tools/persist-and-sync
Throw Error when store name is changed.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 48
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
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
nameis changed. - Always read
option.nameand 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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no file or test; locate the __persistNSyncOptions definition and the code that reads option.name or prevState.__persistNSyncOptions.name. Implement the requested interface and changed-name error, then verify that the option name is always read from option.name and that the error occurs when it changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100