Other Reactivity APIs
WARNING
The implementation explained here is based on the version prior to the currently drafted Reactivity Optimization.
Once Reactivity Optimization is completed, the content of this chapter will be updated to align with it.
Let's implement other reactivity APIs!
- customRef
- readonly
- shallowReactive
- unref
- isProxy
- isReactive
- isReadonly
If you have come this far, you should be able to implement them by reading the source code without any explanations!
Source code so far:
chibivue (GitHub)