Answers about versioning
Questions and answers from the Croct community about versioning.
Should I pin the slot version in fetchContent or is leaving it off fine?
Some examples use a slot id like home-hero@2 and others just the bare home-hero. What is the practical difference between the two? We publish content changes…
If I change a Sanity component's fields, does it break the mapped Croct slot?
We iterate on our Sanity component schemas fairly often, adding and renaming fields as the design evolves. My worry is that editing a component's fields…
A content publish broke my build because the slot type changed, how do I stop that?
A colleague published a schema change on one of our slots this morning, and my very next build started failing because the content shape had changed under me.…
What version syntax can I use for slots in croct.json5?
ours has a plain "3" for a couple of slots and I want to know what else the version field accepts. Can I give a range, or a list of specific versions? And…
A content publish broke our prod build, was it because we did not pin the slot version?
Someone on the content side published a schema change to a slot and our Next app immediately started getting content that did not match our types. Here is…
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…
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…
Orange dot warning in the editor and preview shows default content
hi everyone, I do react work at a small agency. I published a new version of our hero component (added a badge field) and now teh editor shows an orange dot…
Keeping Croct component schemas in sync with our design system
I maintain our design system and its Storybook, and we ship changes to it roughly monthly: new props, renamed variants, occasionally a breaking change to a…