I am able to render my slices if I add a UID to my singular Custom Type and use
<slice-zone type="blog_single" uid="blog-single" />
<slice-zone type="blog_single" queryType="single" />
Just renders the "Your slice is empty" component.
The custom type for this document is definitely singular as you can see here
After adding the UID field to the singular custom type, i tried again with using
queryType="single" on my slice zone component and again failed.
The UID of the document is required when queryType is "repeat". You also don't need to add UID in a single type. I have a few questions:
- Was this Custom Type repeatable before?
- Do you have some doc in the Archive or release tab?
- What version of vue/slicezone do you have?
Actually in my case adding a UID is the only way it works.
- No was always singlular
- 1 unrelated doc in archives for different custom type
That's strange. Could you please send me your prismic repo URL and project source code? You can send me a Private message, though.
Meanwhile, can you update vue-slicezone to 0.1.2 version?