AndreasFaust / gatsby-source-custom-api

Source data from any API and transform it to (File-)Nodes.
52 stars 25 forks source link

Fixed code to avoid touchnode() deprication warning. #27

Closed dmotan closed 3 years ago

dmotan commented 3 years ago

Fixed the code to eliminate this warning: warn Calling "touchNode" with an object containing the nodeId is deprecated.

This also helps with building on Netlify, without this change, Netlify does not use the cache properly. See https://github.com/gatsbyjs/gatsby/blob/41f0ce7ad5010b94c635ad9a08a7f4c4ba564df7/packages/gatsby/src/redux/actions/public.js#L904-L939 for reference.