dy / spect

Observable selectors in DOM
https://dy.github.io/spect
MIT License
74 stars 8 forks source link

v ~~as proxy~~ as observable #229

Closed dy closed 4 years ago

dy commented 4 years ago

160, #181, #182, #183, #184 etc.

v as observ + deps seems cramped and not natural, the DX is rough. Would be way easier to provide simple primitive storage, as useState:

let x = v(0)
x(), x(2)
x.subscribe(() => {})
x.map(() => {})
...

That is sufficient primitive to organize reactivity. store proxy can be organized in strui. from can also be put to strui.

dy commented 4 years ago

Done as simple observable in v22