title: How does one have multiple cases that run the same code with Redux Toolkit?
body: <p>I'm working on converting some older Redux code to use the new Redux Toolkit. I've run into a problem where, in the old code, multiple case statements would trigger the same reducer logic. How does one do this with the new case reducer functions?</p>
  <p>In the old code, REGISTER_FAIL, AUHT_ERROR, LOGIN_FAIL, LOGOUT all run the same code. Is it possible to have this same type scenario in the createSlice reducers object?</p>
  <p>Old Code</p>
  <pre class="lang-js prettyprint-override"><code>    case REGISTER_FAIL:
      case AUTH_ERROR:
      case LOGIN_FAIL:
      case LOGOUT:
        localStorage.removeItem('token');
        return {
          ...state,
          token: null,
          isAuthenticated: false,
          loading: false,
          user: null,
        };
      default:
        return state;
  </code></pre>
  <p>New Code</p>
  <pre class="lang-js prettyprint-override"><code>const authUserSlice = createSlice({
    name: 'authUser',
    initialState,
    reducers: {
      registerFail(state, action) {
        return {
          ...state,
          token: null,
          isAuthenticated: false,
          loading: false,
          user: null,
        };
      },
      registerSuccess
    },
  });
  </code></pre>