-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gatsby): use correct state in the schema hot reloader (#19862)
* Fix schema rebuilding and add e2e test for it in develop * perf: use some vs filter for inference dirty checking
- Loading branch information
Showing
3 changed files
with
61 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react" | ||
import { graphql } from "gatsby" | ||
import Layout from "../components/layout" | ||
import InstrumentPage from "../utils/instrument-page" | ||
|
||
const SchemaRebuildPage = ({ data }) => ( | ||
<Layout> | ||
<p>{JSON.stringify(data)}</p> | ||
</Layout> | ||
) | ||
|
||
export default InstrumentPage(SchemaRebuildPage) | ||
|
||
export const schemaRebuildQuery = graphql` | ||
{ | ||
allMarkdownRemark { | ||
edges { | ||
node { | ||
frontmatter { | ||
title | ||
# foo | ||
} | ||
} | ||
} | ||
} | ||
} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters