How can unuse always have a currentSub/Scope? #74
Unanswered
Shinigami92
asked this question in
Q&A
Replies: 1 comment 1 reply
-
it doesn't have to be global/unEffectScope. using effect will create avtiveSub |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
@JounQin @teleskop150750 I just watched a video today about reactivity and that reminded me that with the reactivity system, there is a
activeSub
/activeScope
which is by defaultundefined
.So this would mean, using an
unSignal
would not really receive any scope, because there is no outer "global" scope, is it?I Vue, Angular, React and Solid, these are normally inside the "App" (as far as I know). But unuse does not have an App, cause it could/should also run e.g. inside node backend and without a global wrapper 🤔
Do we have an issue here?
Beta Was this translation helpful? Give feedback.
All reactions