react-blessed not working with react-redux
See original GitHub issueCopying from the response to a question I asked here
- there’s a bug somehow between
react-blessed
andreact-reconciler
that is causinguseEffect
cleanup functions to be run when they shouldn’t be. This may be due toreact-blessed
keeping around thisrunningEffects
array, or it may be due to something odd in this specific version ofreact-reconciler
. Either way, the root cause of the behavior you’re seeing is thatProvider
is unsubscribed when it shouldn’t be because it was callinguseEffect
, and then having its cleanup function run when you dispatched a new Redux action and queued a UI update. That caused a flush of passive effects, which hits this bit:
function flushPassiveEffects() {
if (passiveEffectCallbackHandle !== null) {
cancelPassiveEffects(passiveEffectCallbackHandle);
}
-
however, I’m seeing that
passiveEffectCallbackHandle
isundefined
, notnull
, so it’s erroneously trying to callcancelPassiveEffects()
. That seems like a bug in this version ofreact-reconciler
. -
That then causes
react-blessed
to try to clean up itsrunningEffects
array, which nukes the effect handler
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
react redux store updates once and then stops updating
The first problem here is that you need to be using the "alternate ... react-blessed is using an old version of react-reconciler which...
Read more >Issues · Yomguithereal/react-blessed - GitHub
A react renderer for blessed. Contribute to Yomguithereal/react-blessed development by creating an account on GitHub.
Read more >Troubleshooting | React Redux
Make sure you don't have multiple instances/copies of React Redux in your project. Make sure you didn't forget to wrap your root or...
Read more >Understanding Redux: A tutorial with examples
In this tutorial, we'll show you what Redux is, why you should use it, and how it works. We'll demo using a simple...
Read more >Are You Still Managing React State With Plain Redux?
If I want to add or modify an action or reducer, I need to update three or more files! Pain point #2. Plain...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
v0.7.0 should have fixed this issue? Can someone confirm and close the issue or ask me to do it please?
yep. it’s working for me too!