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
In my dashboard, when user moves around, I use HTMX and swap and when the session expires, user will correctly redirect to /signin url but there's an issue here.
Login page also swaps at the same place and dashboard sidebar remains visible.
I used this code to fix it, just wanted to check if this is correct or is there a better way to handle this?
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
-
Hey guys,
In my dashboard, when user moves around, I use HTMX and swap and when the session expires, user will correctly redirect to /signin url but there's an issue here.
Login page also swaps at the same place and dashboard sidebar remains visible.
I used this code to fix it, just wanted to check if this is correct or is there a better way to handle this?
Beta Was this translation helpful? Give feedback.
All reactions