Skip to content

Commit 9d5026f

Browse files
datakurrepieh
authored andcommitted
fix(gatsby): Add touchNode to populate typeOwners (#15919)
1 parent 2d8cc44 commit 9d5026f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/gatsby/src/redux/actions/public.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,11 @@ actions.touchNode = (options: any, plugin?: Plugin) => {
794794
nodeId = options
795795
}
796796

797+
const node = getNode(nodeId)
798+
if (node && !typeOwners[node.internal.type]) {
799+
typeOwners[node.internal.type] = node.internal.owner
800+
}
801+
797802
return {
798803
type: `TOUCH_NODE`,
799804
plugin,

0 commit comments

Comments
 (0)