Subscribe to Route Changes
Is
router.subscribe the best way to re-render a component when a route changes? I feel like I'm missing something, is there a simpler approach?
1 Reply
xenial-blackOP•2y ago
Ok looks like there's a new
useMatches() hook - and I had a buggy version of the beta