RIAEvangelist / awesome-webcomponents

Other
13 stars 2 forks source link

Clear screen state on logout success #35

Closed MaybeRex closed 8 years ago

MaybeRex commented 8 years ago

Clear screen state on logout success

Clear the states on logout so it does not navigate to previous screen on login

RIAEvangelist commented 8 years ago

I do not think this is ideal for all scenarios.

There will be scenarios when a timeout logs the user out, or locks their app. In these scenarios a user would want to be directed back to where they came from.

This should be handled elsewhere or in a different action for an app which also listens for the logout action.

But, it should be explicit behavior not implicit.