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

Doc for createReaction should be more detailed #231

Open
viridia opened this issue Feb 10, 2023 · 0 comments
Open

Doc for createReaction should be more detailed #231

viridia opened this issue Feb 10, 2023 · 0 comments

Comments

@viridia
Copy link

viridia commented Feb 10, 2023

The documentation for createRoot() is really sparse - just two sentences, one which describes the motivation, and the other which describes the functionality. That's not really enough.

In particular, I would like it to be more explicit about the owner scope in which the tracked function runs. I had initially assumed that the tracked function inherited the scope that was current when createReaction() is called, but that is not the case. Instead, the tracked function inherits the scope that is current when the function returned from createReaction is called.

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

No branches or pull requests

1 participant