UNPKG

ra-core

Version:

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

14 lines 488 B
import * as React from 'react'; import { useEffect } from 'react'; import { StoreContext } from './StoreContext'; export var StoreContextProvider = function (_a) { var Store = _a.value, children = _a.children; useEffect(function () { Store.setup(); return function () { Store.teardown(); }; }, [Store]); return (React.createElement(StoreContext.Provider, { value: Store }, children)); }; //# sourceMappingURL=StoreContextProvider.js.map