File tree 1 file changed +2
-4
lines changed
docs/docs/how-to/images-and-media 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,8 @@ exports.createSchemaCustomization = ({ actions }) => {
57
57
exports .onCreateNode = async ({
58
58
node,
59
59
actions: { createNode, createNodeField },
60
- store,
61
- cache,
62
60
createNodeId,
61
+ getCache,
63
62
}) => {
64
63
// For all MarkdownRemark nodes that have a featured image url, call createRemoteFileNode
65
64
if (
@@ -71,8 +70,7 @@ exports.onCreateNode = async ({
71
70
parentNodeId: node .id , // id of the parent node of the fileNode you are going to create
72
71
createNode, // helper function in gatsby-node to generate the node
73
72
createNodeId, // helper function in gatsby-node to generate the node id
74
- cache, // Gatsby's cache
75
- store, // Gatsby's Redux store
73
+ getCache,
76
74
})
77
75
78
76
// if the file was created, extend the node with "localFile"
You can’t perform that action at this time.
0 commit comments