branlice-reactivity

1.0.0 • Public • Published

Reactive API

  • [x] reactive
    • [X] Reactive: Define a responsive object and the effect fn will be collected;
    • [X] Readonly:Define a read-only mode object based on proxy;
    • [X] isReactive:Check for reactive object;
    • [X] isReadonly: Check for readonly object;
    • [X] shallowReactive
    • [X] shallowReadonly
    • [X] isShallowReactive
    • [X] isShallowReactive
  • [x] ref
    • [x] ref
    • [x] enhance ref: rewrite ref setter and readonly/shallow ref(TODO)
    • [X] isRef
    • [X] unRef
    • [X] proxyRefs
  • [x] effect
    • [X] effect:for track dependencies and updating them
    • [X] scheduler:scheduler
    • [X] stop:Stop track on dependencies
  • [x] computed
    • [x] computed
    • [x] computed cache

Package Sidebar

Install

npm i branlice-reactivity

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

130 kB

Total Files

15

Last publish

Collaborators

  • kenny6520