Skip to content
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

refactor blog posts #1125

Merged
merged 11 commits into from
Sep 23, 2021
Merged

refactor blog posts #1125

merged 11 commits into from
Sep 23, 2021

Conversation

cometkim
Copy link
Contributor

Description

@Urigo As I mentioned in #1102

We can safely remove most of the runtime validation by using the Gatsby's Data Layer.

And this is an example of how to do it, by adding a custom schema for type BlogPost .

Reducing runtime code and using Gatsby Link correctly is actually significantly speeds up the navigation.

@Urigo
Copy link
Contributor

Urigo commented Sep 23, 2021

Wow @cometkim that is nice!
And also noticeably faster!
Thank you!

@Urigo Urigo merged commit 19ef2b3 into graphql:source Sep 23, 2021
@cometkim cometkim deleted the custom-blog-posts branch September 23, 2021 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants