PageContext
PageContext is a mechanism in Gatsby for passing data from the build process into individual page components. The pageContext object is supplied when a page is created with the createPage API in gatsby-node.js and becomes available to the corresponding page component as props.pageContext during render.
It is intended for data that is specific to a page and used to render dynamic pages
Creation and access are straightforward: in gatsby-node.js you call actions.createPage({ path: `/blog/${slug}`, component: path.resolve('./src/templates/post.js'), context: { slug
Common use cases include implementing pagination, filtering, localization, or any scenario that requires passing identifiers or