issue with sharing useObservable hooks #276
Unanswered
zhigang1992
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example:
we have a
And this hooks is shared across the app in multiple component that get mounted on the screen at the same time.
Now if one of these component unmount, it will trigger unsubscribe and
_reset
function inSuspenseSubject
.Which will then corrupt all the other mounted components's state.
Is there something wrong with that usage?
Should we maybe just keep the SuspenseSubject and maybe not resetting it?
Beta Was this translation helpful? Give feedback.
All reactions