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

[FEAT] Use Slice API of Gastby #741

Open
2 tasks
csouchet opened this issue Nov 14, 2022 · 0 comments
Open
2 tasks

[FEAT] Use Slice API of Gastby #741

csouchet opened this issue Nov 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@csouchet
Copy link
Member

csouchet commented Nov 14, 2022

Use Slice API of Gastby for:

  • the header
  • the footer

The Slice API allows you to define highly-shared components in your site, which will then inform Gatsby to build those shared components only once. After the files are built, Gatsby will then stitch the resulting markup and JavaScript to the pages that include that shared component. This means that changes to highly-shared components (such as headers, footers, and common layouts) no longer require a rebuild of all pages that use that shared component.

https://www.gatsbyjs.com/docs/how-to/custom-configuration/typescript/#gatsby-slice-api

@csouchet csouchet added the enhancement New feature or request label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant