james0r
(James Auble)
1
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" />
but
<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.
Priyanka
(Priyanka Maheshwari)
3
Hello @james0r
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?
Thanks,
Priyanka
james0r
(James Auble)
4
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
- 0.2.1
Thanks
Priyanka
(Priyanka Maheshwari)
5
Hello @james0r
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?
Thanks,
Priyanka