♻️ Section Rendering API
-
What is the “Section Rendering API”?
-
Give an example of where the Section Rendering API can be used.
-
What is “Bundled section rendering”?
- Create a simple example.
-
What is the maximum number of sections that can be retrieved from a single API request?
-
How can you retrieve a section using a fetch request in the context of an exact page? Provide an example.
-
What are the two ways to find a section ID for the Section Rendering API, and what are the differences between these two methods?
-
What is the difference between the "sections" URL parameter and the "section_id" URL parameter in a rendering query?
-
What is the performance impact of using the Section Rendering API? How can it affect page load times, and what best practices should be followed to minimize these effects?
🎖️Task:
Use the Dawn theme to complete the following:
🤹 Develop a section that displays product cards from a collection selected via the Customizer in the section settings.
❗ This section should update each time an item is added to the cart, utilizing the Section Rendering API.
❗If any product in this listing is already in the cart, it should be hidden from view in that section.