Skip to content

Commit

Permalink
chore: remove workaround for gatsbyjs/gatsby#26520
Browse files Browse the repository at this point in the history
seems like it is not needed for gatsby 3
  • Loading branch information
Leksat committed Mar 15, 2021
1 parent e443870 commit 4fdf73e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ export const createArticlePages: Required<GatsbyNode>['createPages'] = async ({
const path = translation.path;
const component = require.resolve(`../../components/article`);

// TODO: remove once the stale page data issue is fixed.
// https://github.com/gatsbyjs/gatsby/issues/26520
// Temporary fix: Call createPage twice with different contexts. This
// helps Gatsby to refresh the page data.
actions.createPage({ path, component, context: 'fake context' });

return actions.createPage({ path, component, context });
}),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ export const createGutenbergPages: Required<GatsbyNode>['createPages'] = async (
const path = translation.path;
const component = require.resolve(`../../components/gutenberg-page`);

// TODO: remove once the stale page data issue is fixed.
// https://github.com/gatsbyjs/gatsby/issues/26520
// Temporary fix: Call createPage twice with different contexts. This
// helps Gatsby to refresh the page data.
actions.createPage({ path, component, context: 'fake context' });

return actions.createPage({ path, component, context });
}),
);
Expand Down

0 comments on commit 4fdf73e

Please sign in to comment.