title: How to erase all the data from all different reducers when user log out in react native?
body: <p>i have a two reducers one is for authentication and second is for fetching some list of data.
  when i log out from app, my authentication reducer gets reinitialize but i don't know how to reinitialize my second reducer as well at the time of logging out.</p>
  
  <p>here is my combine reducers code: </p>
  
  <pre><code>export default combineReducers({
      auth: AuthReducer,
      patientReducer: PatientReducer,
  });
  </code></pre>
  
  <p>then import my reducers in app.js:</p>
  
  <pre><code>import reducers from './reducers';
  
  
  class App extends Component {
  
      render() {
          const store = createStore(reducers,{},applyMiddleware(ReduxThunk));
          return (
              &lt;Provider store={store}&gt;
                  &lt;RouterComponent /&gt;
              &lt;/Provider&gt;
          );
      }
  }
  
  export default App;
  </code></pre>
  
  <p>please tell me if how to dispatch an action of log out so that both of my reducers get reinitialize/empty.</p>
  
  <p>because whenever i log out and then log in from another account the app first renders the previous user's data list because my second reducer(patientReducer) doesn't get reinitialize/empty at the time of logging out and then re-renders the data list of the current logged in user. </p>