Hi! I have migrated to the new version, but the internal links I am placing inside my RichText are not rendered. My external links are working and visible.
I am using the PrismicRichText component. When console logging externalLinkComponents I do get all of them like expected. When console.log internalLinkComponents I don't get any output.
When I am using the components prop and style all hyperlinks found in the RichText, it does get pick up and styled.
What could be the cause that those internal links with the type 'Document' are not shown on my pages?
Hi @dfmkraaijeveld
I think you need to wrap your components in a PrismicProvider component where you can import it using import { BrowserRouter, Route, Routes, Link } from "react-router-dom"; this is where you can supply internalLinkComponent (I'm now sure if you can supply it in the PrismicRichText component), such as: