UNPKG

gatsby-source-wordpress

Version:

Source data from WordPress in an efficient and scalable way.

18 lines (17 loc) 524 B
"use strict"; exports.__esModule = true; exports.cacheFetchedTypes = void 0; var _store = require("../../store"); var _cache = require("../../utils/cache"); const cacheFetchedTypes = async () => { const state = (0, _store.getStore)().getState(); const { fetchedTypes } = state.remoteSchema; await (0, _cache.setPersistentCache)({ key: `previously-fetched-types`, value: Array.from([...fetchedTypes]) }); }; exports.cacheFetchedTypes = cacheFetchedTypes; //# sourceMappingURL=cache-fetched-types.js.map