#Accessing state data in actions?
1 messages · Page 1 of 1 (latest)
if you would use a fetcher you could submit formdata and you could add your data to the searchparams for example but just an idea, dont know if you need useNavigate
1 messages · Page 1 of 1 (latest)
I am using useNavigate to navigate to a different page when an item is clicked and passing in data to the state option. Is there a way that I can access that data inside the action of the page?
if you would use a fetcher you could submit formdata and you could add your data to the searchparams for example but just an idea, dont know if you need useNavigate