Closed pleek91 closed 1 month ago
Name | Link |
---|---|
Latest commit | 61c57c9d3145a1603d78741964a266e1a2ab07a8 |
Latest deploy log | https://app.netlify.com/sites/kitbag-router/deploys/665207c017c58a0008d39503 |
Deploy Preview | https://deploy-preview-183--kitbag-router.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Description
The current route can be type guarded using
useRoute('route.key')
. Adding andisRoute
type guard so that any value can be type guarded to determine A. If it is aRouterRoute
B. Which user defined route it isThis allows for this type of logic
There is also an optional 3rd argument for options where the
exact
option can be passed. Passing this settings means that if the current route issettings.foo
thenisRoute(route, 'settings', { exact: true })
will returnfalse
.