Skip to content

Commit 3794b9c

Browse files
committed
initial
1 parent c6e4298 commit 3794b9c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/docs/how-to/plugins-and-themes/creating-a-source-plugin.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,9 @@ Then export a new function `onCreateNode`, and call `createRemoteFileNode` in it
526526
exports.onCreateNode = async ({
527527
node, // the node that was just created
528528
actions: { createNode, createNodeField },
529+
store,
530+
cache,
529531
createNodeId,
530-
getCache,
531532
}) => {
532533
if (node.internal.type === POST_NODE_TYPE) {
533534
const fileNode = await createRemoteFileNode({
@@ -536,7 +537,8 @@ exports.onCreateNode = async ({
536537
parentNodeId: node.id,
537538
createNode,
538539
createNodeId,
539-
getCache,
540+
cache,
541+
store,
540542
})
541543

542544
if (fileNode) {

0 commit comments

Comments
 (0)