0.3.0
Subscribe to value updates with live.subscribe({ next: (value) => console.log(value) }); or with const { value, setValue } = useSubscribe(live);
Added
live.subscribe: pass callbacks to be called whenever the value changesuseSubscribe: a React hook that subscribe to a live. Automatically unsubscribes when the component is unmounted.