And it redirect me littrealy to /:income but dont replace the ":income" with selectedIncome. I had to replace it with useNavigate and it worked.
I looked in the codebase and I wonder if the miss of generatePath in the code of modal.close (2) like in Link (1) component could be the origin ?
@FrancoRATOVOSON Thanks for reporting this. This was indeed an issue related to both modals open and close methods, which the at params weren't resolving at all.
My code looks like this :
And it redirect me littrealy to
/:income
but dont replace the":income"
withselectedIncome
. I had to replace it withuseNavigate
and it worked. I looked in the codebase and I wonder if the miss ofgeneratePath
in the code ofmodal.close
(2) like inLink
(1) component could be the origin ?https://github.com/oedotme/generouted/blob/0cadbbfef348fe82cdd1baaf71abd3d654c1a0a7/packages/react-router/src/client/components.tsx#L7-L8 (1)
Link component
https://github.com/oedotme/generouted/blob/0cadbbfef348fe82cdd1baaf71abd3d654c1a0a7/packages/react-router/src/client/hooks.ts#L34-L36 (2)
modal.close function