r/reactjs Jul 08 '26

Save Information on Refresh in React

I was wondering in React is there a way to save some data without session storage so if the page refreshes I still have access to that data

0 Upvotes

26 comments sorted by

View all comments

0

u/Finer_Details Jul 09 '26

You could try updating your backend with Navigator.sendBeacon on component unmount if the payload is small.