[Content]: Route props description is out of date and missing props #845
Labels
help wanted
Looking for assistance on this issue
improve documentation
Enhance existing documentation.
📚 Subject area/topic
/solid-router/reference/components/route.mdx
📋 Page(s) affected (or suggested, for new content)
https://docs.solidjs.com/solid-router/reference/components/route
📋 Description of content that is out-of-date or incorrect
load
being deprecated, while the recommendedpreload
is not documented at all.info
prop. There is a helpful example in the solid router repo description whereinfo
is used together withuseCurrentMatches
(which is not mentioned anywhere in the docs as well). It would be great to include this vital information in the docs, as I stumbled upon that example by accident.I think the second point is the most important, since attaching metadata to routes that can't be expressed in the path is a common pattern. I needed this functionality to display a title based on the screen the user navigated to. I poked around the router docs for a while and tried a few approaches until I found
info
on theRouteProps
type.🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
The text was updated successfully, but these errors were encountered: