-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: Issue 524/upgrade gatsby #562
Conversation
During local build the build is progressing. My last commit allows you to view a more verbose output of the nodes as they're being processed.
For some reason these requests tend to timeout or take around 500s. |
Yea, actually this build progress with the dependency updates. The NASA image from CDN are taking forever to build, I'm sure there's some reason for that, and it may be its own issue. @Tammo-Feldmann |
@naomatheus, I'm not sure if you noticed this but I already have a PR open for the Gatsby update here. I'm sorry that I didn't communicate more clearly that I had already put some work into this. Will try to make that more obvious going forward. |
Ah yes, @Tammo-Feldmann I did remember seeing that PR. I thought it'd be better to start a fresh branch, even if there was some slight duplication of work. I was able to work through updating the Reach dependencies and some other gatsby components that aren't supported in v5 (because they're built in). I'll make sure to merge integrate them somehow. I am able to build this with Gatsby v5! Yea, I saw your comment about styled components though. |
Now it seems like an update to jest unit tests will be necessary to wrap up this upgrade. |
updated notes |
After looking into the most up-to-date discussion on this issue that Gatsby 5 slice API has with styled-components, the last thing I have found is that they do not support this and don't have plans to offer specific support for react/styled-components. I see promising discussion on using https://emotion.sh/docs/styled I have a list of existing files in the codebase that use I'll try to plug a few of these components in a Gatsby slice and will check to see if the build succeeds and still shows the styling we want. |
@naomatheus that's great news and really good work on your part. I'm happy to hear that you found emotion/styled as a very similar replacement. Will be curious to hear more about your findings. Sounds like this would be a great way forward for us if it works. |
Yep. This seems promising. I'm going to convert a few more components and then test a production build before continuing. |
Posting this here so I can reference it easily
|
Still making progress on this. But ran into the following:https://www.gatsbyjs.com/blog/how-to-use-function-props-with-gatsbys-slice-api/ For reference @Tammo-Feldmann |
@naomatheus that's a good call. I remember seeing in the Gatsby docs that the slice api does not allow function props. Glad to see that React context will still work in this case. Seems like an annoying refactor rather than a show stopper. Let me know how this goes for you. |
I've paused on this refactor of the Button component. I found the refactor is a bit more extensive than I am knowledgeable of React Context within Gatsby. So I paused on that, but saved my work in a stash. |
This is coming along still. I'm working on getting passing tests now. |
@naomatheus happy to hear that this is working out for you. Leaving the components with setter functions out for now sounds like a good plan. We can always revisit them later if we see that we're getting good gains from the slices that you have separated out so far. Looking forward to seeing how this all shakes out in the end. |
Closing, we upgraded to gatsby v5 in #675. |
Responds to #524