The 'theme' prop just never becomes available, which I use the vue inspection tool, I can see the value against the SliceZone but it's not shown for any of the children.
Please give a fully realised example of how to pass dynamic values from the parent down to the child slices using <slice-zone>.
Currently, you can only pass prop theme to slices which are already defined in 'vue-slicezone'. If you want to pass your props to your custom slices, you need to create your own library for that.
Please check this example project create by my colleague, you can explore this but, you can not import these slice.
Wait. I think this is a huge concern if I'm interpreting it correctly.
So you folks are saying there is currently no simple way to pass our own custom props down from a page to the underlying slices??
This is core functionality within say nuxt components.
It means that slices become an inaccessible island.
To work around this I'm not going to have to add additional fields in the Prismic Writers Room to make up for this gap. Eg get the user to awkwardly "set variables" which should be fed into the slice as "paramaters".
I would have expected that passing down custom props via a predefined prop like "params" would be the sort of thing I'd need to do to make this work.
This is like programming without being able to set input paramaters.
Please review with the dev team. This is needs addressing as a fairly critical issue.
Hello, I can't get sliceProps object inside my component, same for the theme property.
I'm using vue-slicezone:0.1.6, I can only access to slice prop.
Can you help me to detect where I'm missing.
I'm a little surprised to learn that vue-slicezone is deprecated here. And so I'm kinda lost now.
I'm using nuxt (vue2) and tried to removed vue-slicezone from my package.json, updated @nuxtjs/prismic to the last version.
Should I remove nuxt-sm from nuxt.config modules also (and package.json) ?
I also tried to update the configuration as mentioned here : Installation - @nuxtjs/prismic
But now I just got ReferenceError: SliceZone is not defined
How should I process, I didn't find any migration guide from my side.
Hey @lateek35_naturo. It's true. We don’t currently have a migration guide for this kit. I'll add a note to our documentation backlog. Please check out our templating document to see how it's done with the <slice-zone> on @nuxtjs/prismic
Hello @digital3, it seems like it. vue-slicezone was in the Slice Machine repository, but it was removed since it was replaced by @prismicio/vue ’s <SliceZone> component. You can open an issue requesting the addition of this deprecation note in the npm package. Maybe this will make the process quicker.