How to automatically open table header modal on component mount?
I have to do this:
when a user goes to
/songs/create
i need to redirect them to /songs?creating=true
in the /songs
route i have a songs table.
in the songs table i have a header action for creating a new song. it is a modal.
when mounting the component i detect if creating is true. but now idk how to open up the creating modal when that variable is true π€0 Replies