Demo hosted by Netlify here: https://coffeefirst.netlify.com/
git clone https://github.com/tpage99/coffee-first.git
npm install
gatsby develop
😎
- Unfortunately, I didn't find this tutorial until after I was encountering some problems with Gatsby building nodes with the gatsby-source-stripe plugin
- Found that even though there are still server-side issues in the logs with the nodes not being built, it was indeed working as they were available in GraphiQL
- ⏰ need to set a reminder to do a pull-request or something
👨💻Gatsby's Debugging HTML Builds Info
- This was super helpful for determining why build was working locally, but failing when trying to deploy to Netlify
- Research if getting the "window not defined" error
- TLDR; utilize
componentDidMount
- Don't Modify State Directly according to React docs. Define state (Stripe in this instance) and set to empty array, then
setState
withincomponentDidMount
- TLDR; utilize