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
As Greg proposed in #4446, so the pattern of consistently clearing
data on all ways of leaving an account gets maintained naturally:
(except we chose the name RESET_ACCOUNT_DATA instead of
CLEAR_ACCOUNT_DATA)
> * I think it'd be a useful refactor to consolidate one action type
> like `CLEAR_ACCOUNT_DATA`.
> * The action creators for these three (in `accountActions.js`) can
> dispatch that first, then also a `LOGOUT` etc.
> * Almost all the reducers would respond only to the
> `CLEAR_ACCOUNT_DATA`.
> * There are a couple of exceptions, like `accountReducers` and
> `sessionReducers`, that actually want to treat the three cases
> differently. Those would be the only ones to continue responding
> to `LOGOUT` etc.; and they'd stand out better as a result.
> * Then there are further changes we might make to those, but
> that'll be easier to see after that.
Fixes: #4446
0 commit comments