then-purpleT
Refine4y ago
5 replies
then-purple

Contextual Modal Navigation with useModal or useModalForm

Is there a way to modify the URL when we open a modal, e.g. clicking in an
item
/dashboard
or
/items
opens up an
item
modal and url changes to
/item/:id
, with the background being rendered based on which entry point it came from.

Using react-router v6, I suspect that I may need to add an
Outlet
to both
Dashboard
and
Items
route, then add a nested route in. Though I'm not sure if this will work nicely in Refine. Has anyone attempted this before?
Was this page helpful?