Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant