From 98c5607dc45ce3915d74e450c375c117ed4a4b0a Mon Sep 17 00:00:00 2001 From: Christian Zoppi Date: Thu, 11 Mar 2021 15:17:26 +0100 Subject: [PATCH] feat: Gatsby v3 support BREAKING CHANGE: replaced boundActionCreators with actions to support Gatsby v3. --- gatsby-node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index 7583b8c95..e800d910e 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -3,8 +3,8 @@ const Sync = require('./src/sync') const getStoryParams = require('./src/getStoryParams') const stringify = require('json-stringify-safe') -exports.sourceNodes = async function({ boundActionCreators }, options) { - const { createNode, setPluginStatus } = boundActionCreators; +exports.sourceNodes = async function({ actions }, options) { + const { createNode, setPluginStatus } = actions; const client = new StoryblokClient(options, 'https://api.storyblok.com/v1'); Sync.init({