[Content]: <Router> - root
and Suspense are required with file-based routing
#795
Labels
root
and Suspense are required with file-based routing
#795
📚 Subject area/topic
SolidStart > Routing
📋 Page(s) affected (or suggested, for new content)
https://docs.solidjs.com/solid-start/building-your-application/routing
📋 Description of content that is out-of-date or incorrect
In a SolidStart project using
<FileRoutes>
,<Router>
requires bothroot
prop.{props.children}
must be wrapped in<Suspense>
See discussion that starts here: https://discord.com/channels/722131463138705510/861229287868858379/1255593230150402078
If there is agreement that these two points need to be made in the doc, I'll create a PR.
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
The text was updated successfully, but these errors were encountered: