Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
onPreInit bug
exports.onPreInit = (gatsbyApi, pluginOptions) => {}
exports.sourceNodes = async (gatsbyApi) => {
const {cache, reporter} = gatsbyApi'Testing cache'); cache.get('test'));'Setting cache');
await cache.set('test', 'someValue');'Checking if set succesfully'); cache.get('test'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment