Passing function error on Contentful live preview client component
I'm trying to build a custom component for Contentful's live preview feature in Next 13 with the app directory. My idea is to create a client component which accepts a data prop from the parent, as well as a generic type to make the updatedData prop that's passed back down type-safe:
But, when I'm trying to use it in the app, this is the error that I'm getting:
Anyone have any ideas of how to get around this? I can include my implementation inside a page, but this message is too long atm.
0 Replies