Issue with createGlobalState
See original GitHub issuecreateGlobalState
stops tracking changes after component that first used global state is disposed.
Tried it with vue@3
and can reproduce it there too, so it is not @vue/composition-api
issue.
Added pull request with reproduction tests: #129
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
useGlobalState resetting when I navigate - Stack Overflow
How Should I Dispatch Actions When Using React Hooks? 1 · Issue updating state to reflect that the user is logged in. Navigating...
Read more >Create global state in React as simply as local state - Codegem
In this article, we will show you how to create global state using createGlobalState, a function we built. If you are interested in...
Read more >TypeScript-aware React hooks for global state | by Daishi Kato
First, you need to define a global state and export a Provider and a custom hook. import { createGlobalState } from 'react-hooks-global-state'; export...
Read more >Creating a Global State with React Hooks - This Dot Labs
The problem is that once you hit any sort of complexity within an application, always passing a ton of props becomes unwieldy and...
Read more >How to use the react-hooks-global-state.createGlobalState ...
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think that will do for now, thanks!
Released in 4.0.0-beta.16.