Use data from props inside slice machine

I'm using slicemachine the NextJS version.

I have a slice called latest posts. I want to get the 3 latest posts from our data in prismic and pass it to the slice machine.

Is there currently a prop that I can use where i can pass this data and use it in that specific slice.

Thanks in advance

Hey Bob,

What you could do is create a slice that uses content relationships and Graphquery, you would select which featured posts you want to include in the document in Prismic.

Hugo & Lucie built something like this in a live coding session with Slicemachine, they use vue/nuxt, but they explain the differences that you will encounter in Next.js in the video.