useNavigate
does not seems to have props option for push url onto history stack without actually rendering the component, maybe i’m missing something , i’m going to use it for my create dialog modal
i did try to hack around by adding new route for that /create/resource
url and then render /show
component with internally use useMatch
and if url matched show / open the create dialog , but again any modification state that was made for the show
component get refrshed cause it rerender, which i’m fine if the user type manually the url but not when user click button for opening create dialog
oporayam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.