You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be possible without introducing another component or API, instead of using async/await the component could use(highlight()). That's what I've done in my PR here: tom-sherman/react-perfect-syntax-highlighter#4
(note: I created that library before I knew this one existed lol)
The blocker at the moment is that cache() seems to be unimplemented/experimental on the client. In Next.js at least builds completely fail.
I have a use case where some code examples need to be rendered server-side and others client-side.
It would be nice if I could use the same package for both.
The text was updated successfully, but these errors were encountered: