Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandrebonaventure/vite-hmr-singleton-bug
https://github.com/alexandrebonaventure/vite-hmr-singleton-bug
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexandrebonaventure/vite-hmr-singleton-bug
- Owner: AlexandreBonaventure
- Created: 2020-07-22T12:29:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T20:21:10.000Z (almost 2 years ago)
- Last Synced: 2023-04-10T07:42:01.465Z (over 1 year ago)
- Language: Vue
- Size: 1.06 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vite-hmr-singleton-bug
## repro
1. `yarn && yarn dev`
2. Change this line and save: https://github.com/AlexandreBonaventure/vite-hmr-singleton-bug/blob/master/src/statefulSingleton.js#L3
3. Then change this line and save: https://github.com/AlexandreBonaventure/vite-hmr-singleton-bug/blob/master/src/useStatefulSingleton.js#L4![before](https://github.com/AlexandreBonaventure/vite-hmr-singleton-bug/blob/master/public/before.png?raw=true)
![after](https://github.com/AlexandreBonaventure/vite-hmr-singleton-bug/blob/master/public/after.png?raw=true)