Answers about slots
Questions and answers from the Croct community about slots.
Best way to get typed slot content in a TypeScript Hydrogen project?
Our Hydrogen storefront is strict TypeScript, no implicit any, and I would like slot content to be typed end to end rather than casting the fetch result to…
Can I use the PHP SDK on a plain PHP app with no framework?
Legacy app here. Plain PHP, no Laravel or Symfony anywhere and no plan to add one. I want to render one personalized slot server-side. Every example points at…
If I fetch Strapi content over GraphQL, does Croct need to hook into that query?
Our app pulls everything from Strapi through the GraphQL plugin. Before I wire Croct in I want to get the mental model right. Does Croct need to hook into…
Should I pin slot versions in my Hydrogen loaders or is @latest fine?
Going through our loaders and I noticed some of our slot ids have no version suffix, just the plain id. That worries me a bit. If a content editor publishes a…
Running two experiments on different slots at the same time, do they interfere?
I ran experimentation programs at my previous company where we serialized everything out of interaction-effect paranoia, and it throttled the roadmap badly.…
Slot shows a red dot in the dashboard, is my integration broken?
We shipped a redesign last month and removed an old promo section from the site. Today I noticed the slot for that section shows red dot in the dashboard.…
Naming conventions for slots once you pass 20 of them?
Our workspace grew organically over a year and the slot list now reads like a horror story: hero2, test-banner, final-final-cta, and my personal favorite,…
How do I map a Strapi dynamic zone to a Croct slot?
Coming from years of WordPress, so headless is still new to me. Our landing page is built from a Strapi dynamic zone with a handful of components (hero,…
How does mapping Sanity components to Croct slots work?
Before I propose this internally I want to make sure I understand the model. Our Sanity site is heavy on portable text and we have a well-established schema…
how do i actually link a storyblok block to a croct slot?
I have the app installed on our react frontend and a hero block ready to go, but I'm fuzzy on the conceptual mapping. Is a slot supposed to be one per block,…
How do I count how many slots we need, is every page a slot?
I am mapping our website in a doc before we pick a plan and I have hit a definitional question. Our site has about 40 pages. Does that mean I need 40 slots?…