Closed justin-hackin closed 12 months ago
Hi @justin-hackin, React Server Components and Next.js' App Router is a significant change from pre-Next.js 13.4. The update required changes in how <PrismicRichText>
works and, in some cases, how it is used.
I just published v2.6.0 which now supports Server Components. See #178 for more details.
You should be able to use <PrismicRichText>
in Server Components now. 🙂
Previously, I was using
to render rich text fields in a next.js server component and I decided to upgrade. I don't need slices, I just want to get my data into a single component and pass it down through props. Previously I was able to render them just fine using
RichText
.I migrated to
Now the app barks at me for trying to use a context in a server component 😖 with
Is it possible to use this component without a context in a server component or do I have to revert to the old versions of this library?