UNPKG

use-invariant

Version:

- <a target="_blank" rel="noopener noreferrer" href='https://codesandbox.io/s/usefetch-in-nextjs-nn9fm'>Example - Next.js</a> - <a target="_blank" rel="noopener noreferrer" href='https://codesandbox.io/embed/km04k9k9x5'>Examples - create-react-app</a>

10 lines 349 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const react_1 = require("react"); exports.FetchContext = react_1.createContext({ url: typeof window !== 'undefined' ? window.location.origin : '', options: {}, graphql: false, }); exports.default = exports.FetchContext; //# sourceMappingURL=FetchContext.js.map