developit / developit/zero-to-preact
Hot reload don't preserve components local state
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 179
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
If I set a counter that increment itself every seconds in App, when I update the 'hello world' message, the counter state is reset to zero instead of keeping its actual value. do you have a solution to fix it?
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
Start from the App entry point and reproduce the counter example while editing the “hello world” message during hot reload. Determine what behavior currently resets the component state; done means the counter retains its value after the message update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, webpack
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100