SolidJSS
SolidJSโ€ข3y agoโ€ข
3 replies
Tom

Router and createRoot

I recently upgraded my app from the old solid-app-router to @solidjs/router.

It looks like, where I used to be able to use regular <a> tags and have them handled client-side by the router, I now have to use the <A> component. Is that expected?

This has lead to a problem with a component that's created outside of the normal render hierarchy using createRoot (necessary because t's a ProseMirror node-view). Links in that component are giving me an exception with the message Make sure your app is wrapped in a <Router />

Any advice on fixing this? Thanks.
Was this page helpful?