You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use XHR for upload progress. Figured out useFormAction generates a URL that does not include the _data query parameter. This causes the loader to receive no headers/cookies and logging the user out.
Triggering reload can be done using useNavigate and the produced URL on demand. Shouldn't it be part of remix to get a proper URL that doesn't eject the user on loader re-run?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I use XHR for upload progress. Figured out
useFormAction
generates a URL that does not include the_data
query parameter. This causes the loader to receive no headers/cookies and logging the user out.So I created a proper hook to do that:
Triggering reload can be done using
useNavigate
and the produced URL on demand. Shouldn't it be part of remix to get a proper URL that doesn't eject the user on loader re-run?Beta Was this translation helpful? Give feedback.
All reactions