title: Calling one redux action from one store slice in another store slice
body: <p>I am new to redux. In my app i am using some async actions with redux thunk.
  For example i have this action for loading movies from API:</p>
  <pre><code>export const loadMovies = (url) =&gt; async (dispatch) =&gt; {
    const response = await fetch(url);
    const result = await response.json();
    const { total_pages: totalPages, results: movies } = result;
    dispatch(moviesLoaded(totalPages, movies));
  };
  </code></pre>
  <p>And i have situationL what if there are no movies to load (search in database didnt give me results) so i want to update status (it is the other redux store slice) to 'no movies' for example. And based on that status render different component.</p>
  <p>So my new action would be something like this:</p>
  <pre><code>    export const loadMovies = (url) =&gt; async (dispatch) =&gt; {
        const response = await fetch(url);
        const result = await response.json();
        if (result) {
        const { total_pages: totalPages, results: movies } = result;
        dispatch(moviesLoaded(totalPages, movies));
        } else {
         dispatch(updateStatus('no-movies')) // updateStatus is imported from another redux store slice
        }
      };
  </code></pre>
  <p>I am wondering is it ok to do so. Or it is a bad practice to import actions from one store slice into another. And what is a better way to handle this situatuion.</p>