Viewing File: /home/ubuntu/route-and-root-frontend-base/node_modules/zustand/system/context.production.js

System.register(["react","zustand"],function(d){"use strict";var u,c,a,n,i,S;return{setters:[function(t){u=t.createContext,c=t.useRef,a=t.createElement,n=t.useContext,i=t.useMemo},function(t){S=t.useStore}],execute:function(){d("default",t);function t(){const s=u(void 0);return{Provider:({createStore:e,children:o})=>{const r=c();return r.current||(r.current=e()),a(s.Provider,{value:r.current},o)},useStore:(e,o)=>{const r=n(s);if(!r)throw new Error("Seems like you have not used zustand provider as an ancestor.");return S(r,e,o)},useStoreApi:()=>{const e=n(s);if(!e)throw new Error("Seems like you have not used zustand provider as an ancestor.");return i(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}),[e])}}}}}});
Back to Directory File Manager