@connected/react
Version:
The hassle free way to call your server-side code
10 lines • 321 B
JavaScript
import React from 'react';
import Lru from './lru.js';
const ConnectedContext = React.createContext({
cache: new Lru(undefined, 100),
dataTtl: 60 * 1000,
errorTtl: 5 * 1000,
factory: (klass, ...args) => new klass(...args),
});
export default ConnectedContext;
//# sourceMappingURL=connected-context.js.map