Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear scope? #440

Closed
darky opened this issue Jan 4, 2021 · 4 comments
Closed

Clear scope? #440

darky opened this issue Jan 4, 2021 · 4 comments
Labels
question Further information is requested

Comments

@darky
Copy link
Contributor

darky commented Jan 4, 2021

Hello! I want to use Effector with Node.js
Need to fork domain into scope on each request -> do some stuff with scope -> clear scope, when request finished.

But how to clear scope? I found clearNode util, but it's not work with scope...

@darky darky added the question Further information is requested label Jan 4, 2021
@zerobias
Copy link
Member

zerobias commented Jan 5, 2021

Scopes are not connected to anything (no references to scope anywhere), so you doesn’t need to call clearNode with them
But even if you want to be explicit, clearNode indeed support scopes
Looks like the only thing that is wrong is lack of Scope in clearNode typings and documentation

@darky
Copy link
Contributor Author

darky commented Jan 5, 2021

Thanks!

@darky darky closed this as completed Jan 5, 2021
@darky
Copy link
Contributor Author

darky commented Jan 5, 2021

Scopes are not connected to anything (no references to scope anywhere)

@zerobias, you mean that scopes will be garbage collected?

@zerobias
Copy link
Member

zerobias commented Jan 6, 2021

@darky yes, they will

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants