UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

13 lines 450 B
import * as React from 'react'; import { useEffect } from 'react'; import { StoreContext } from "./StoreContext.js"; export const StoreContextProvider = ({ value: Store, children, }) => { useEffect(() => { Store.setup(); return () => { Store.teardown(); }; }, [Store]); return (React.createElement(StoreContext.Provider, { value: Store }, children)); }; //# sourceMappingURL=StoreContextProvider.js.map