Now we have clunky state management and container routes that perform side effects (such as creating a new submission).
Instead, when the user session expires, we should (client-side) redirect to a dedicated page showing the message, and the side effect should be that any session data and state (sessionStorage and the like) are cleared.
Now we have clunky state management and container routes that perform side effects (such as creating a new submission).
Instead, when the user session expires, we should (client-side) redirect to a dedicated page showing the message, and the side effect should be that any session data and state (
sessionStorage
and the like) are cleared.