question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with createGlobalState

See original GitHub issue

createGlobalState 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:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
antfucommented, Sep 23, 2020

I think that will do for now, thanks!

0reactions
antfucommented, Sep 23, 2020

Released in 4.0.0-beta.16.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found