Is there some sort of documentation for @vue/reactivity? #10449
-
I know it is used extensively as primitives for vue itself, but can't seem to find much about the API in its standalone form. For instance, for the plain "effect", what is the intended use of the individual options? What is "allowRecurse", or "scheduler" (these are just example questions)? Is any of this documented anywhere? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Being refactored... |
Beta Was this translation helpful? Give feedback.
-
There are no real end-use docs for this package, really. It's not purposely designed to be used as a drop-in reactivity library, though developers interested in building on top of it can do that. most pieces of the library are essentially documented in the Vue docs - You can learn how schedulers work by looking at the implementation in runtime-core, yet the reactivity package is usable without a scheduler as well - in that case, |
Beta Was this translation helpful? Give feedback.
There are no real end-use docs for this package, really. It's not purposely designed to be used as a drop-in reactivity library, though developers interested in building on top of it can do that. most pieces of the library are essentially documented in the Vue docs -
effect()
as a central piece is the notable exception.You can learn how schedulers work by looking at the implementation in runtime-core, yet the reactivity package is usable without a scheduler as well - in that case,
effect()
(which are the basic version ofwatchEffect()
) just run synchronously, much likewatchEffect
would withflush: 'sync'