Describe the bug
What is supposed to happen ? What is happening instead ?
When trying to invoke useNavigate in a story, the path is being appended to the original path instead of updating the path param.
For example, with the following meta, the story loads with a path of '/pokemon/1':
Describe the bug What is supposed to happen ? What is happening instead ? When trying to invoke useNavigate in a story, the path is being appended to the original path instead of updating the path param.
For example, with the following meta, the story loads with a path of '/pokemon/1':
But when trying to update with use navigate like below:
it is just appending the updated id to the end of the path, like '/pokemon/1/2' which the router cannot find.
To Reproduce Describe all the steps required to reproduce the issue.
See above code
To help us resolve your issue more quickly, please fork the [https://stackblitz.com/edit/storybook-addon-remix-react-router](stackblitz project) to reproduce your issue.
Additional context Add any other context about the problem here.
Environment Share the output of the following command :