Detecting a change in path on location change
I have the following setup:
The intent is that when I execute the following line:
navigate({ to: '/teams/$teamId/schedules', params: { teamId: 'newID' } });
I want to catch that navigation change and extract the new team id. However, the match route seems to 'lag' behind.
Example attached in image.
How can I get the most up to date team Id?
0 Replies