UNPKG

jotai

Version:

👻 Next gen state management that will spook you

2 lines (1 loc) • 298 B
System.register(["jotai"],function(s){"use strict";var n;return{setters:[function(o){n=o.atom}],execute:function(){s("atomWithStore",o);function o(t){const r=n(t.getState());return r.onMount=e=>{const c=()=>{e(t.getState())},i=t.subscribe(c);return c(),i},n(e=>e(r),(e,c,i)=>{t.dispatch(i)})}}}});