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.2 Replies
https://github.com/solidjs/solid-router/blob/main/src/components.tsx#L236
https://github.com/solidjs/solid-router/blob/main/src/routing.ts#L461
<a link ..> should still work like before
Awesome, thanks. I didn't know about that attribute. Was working without that before, I'm pretty sure 🤷♂️