S
SolidJS2y ago
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.
2 Replies
Tom
Tom2y ago
Awesome, thanks. I didn't know about that attribute. Was working without that before, I'm pretty sure 🤷‍♂️
Want results from more Discord servers?
Add your server