File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/gatsby/src/redux/actions Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -803,6 +803,8 @@ actions.createNode = (...args) => dispatch => {
803803 } )
804804}
805805
806+ const touchNodeDeprecationWarningDisplayedMessages = new Set ( )
807+
806808/**
807809 * "Touch" a node. Tells Gatsby a node still exists and shouldn't
808810 * be garbage collected. Primarily useful for source plugins fetching
@@ -824,7 +826,10 @@ actions.touchNode = (node: any, plugin?: Plugin) => {
824826 msg = msg + ` "touchNode" was called by ${ plugin . name } `
825827 }
826828
827- report . warn ( msg )
829+ if ( ! touchNodeDeprecationWarningDisplayedMessages . has ( msg ) ) {
830+ report . warn ( msg )
831+ touchNodeDeprecationWarningDisplayedMessages . add ( msg )
832+ }
828833
829834 node = getNode ( node . nodeId )
830835 }
You can’t perform that action at this time.
0 commit comments