Recommended way to match routes in hooks in v1? #888
Unanswered
geoff-harper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey quick question on how we should be matching routes in hooks now. I see mentions in the docs of using the
from
property with a string literal,from
property with the imported route's id, and accessing the hook directly off the imported routesomeRoute.useLoaderDeps()
. I had a bit of trouble in the past using the route's id property and circular imports so I'm wondering if string literals will be supported going forward (and fixed since their types are currently not working)Beta Was this translation helpful? Give feedback.
All reactions