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

Add track query extraction in onPostBootstrap #114

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

edykim
Copy link
Contributor

@edykim edykim commented Oct 19, 2020

I had time to check the inconsistency between gatsby develop and gatsby build. At the initial of gatsby develop, the types from static queries do not generate if there is a cache. These components are loaded in onPostBootstrap through QUERY_EXTRACTION_BABEL_SUCCESS action. Therefore, that action needs to be handled in onPostBootstrap as well.

The steps are somewhat different than onPostBootstrap one, so I just put a similar logic. If this logic solves the problem, we can make it nicer.

Some of the generated files are still different e.g. PagesQuery, port, host. These are dev only option, and it appears in generating process. I guess it should be an option to filter out. Note: PagesQuery is from the dev-404 page.

@cometkim cometkim self-requested a review October 22, 2020 20:38
@cometkim
Copy link
Owner

Thank you for figuring out the missing steps before rewriting the plugin. 😄

Some of the generated files are still different e.g. PagesQuery, port, host. These are dev only option, and it appears in generating process. I guess it should be an option to filter out. Note: PagesQuery is from the dev-404 page.

Yeah, we have an opened issue for that: #103

@cometkim cometkim merged commit f0f1fe5 into cometkim:master Oct 22, 2020
@cometkim cometkim added bug Something isn't working enhancement New feature or request labels Oct 22, 2020
@cometkim
Copy link
Owner

@all-contributors please add @edykim for bug, code

@allcontributors
Copy link
Contributor

@cometkim

I've put up a pull request to add @edykim! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request Hacktoberfest Enjoy the festival!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants