title: react-native-router-flux: How to return to previous Scene forcing reload of data?
body: <p>I'm using a List View</p>
  
  <pre><code>class GroupList extends Component {
    componentWillMount() {
      this.props.fetchGroups();
  </code></pre>
  
  <p>I fetch from firebase a VERY SHORT list of elements.</p>
  
  <pre><code>export const fetchGroups = () =&gt; {
    const { currentUser } = firebase.auth();
  
    return (dispatch) =&gt; {
      dispatch({ 
        type: FETCHING_GROUPS 
      });
  
      firebase.database().ref(`/users/${currentUser.uid}/groups`)
        .on('value', snapshot =&gt; {
          dispatch({ 
            type: GROUPS_FETCHED, 
            payload: snapshot.val() 
          });
        });
    };
  };
  </code></pre>
  
  <p>To create a new item I use the top-right Button offered from react-native-router-flux</p>
  
  <pre><code>    &lt;Scene 
        key="groupList" 
        component={GroupList} 
        title="Gruppi di servizio" 
        hideNavBar={false} 
        rightTitle="Nuovo"
        onRight={() =&gt; Actions.groupForm({ formType: NEW_GROUP_FORM_TYPE })}
        sceneStyle={{ paddingTop: 65 }} 
      /&gt;
  </code></pre>
  
  <p>So I click top-right 'new' button and I see my form.</p>
  
  <p>User then save the new group name</p>
  
  <p>This is my action to Save to firebase: </p>
  
  <pre><code>return (dispatch) =&gt; {
    dispatch({
      type: TRYING_TO_CREATE_GROUP,
    });
  
    firebase.database().ref(`/users/${currentUser.uid}/groups`)
      .push({ groupName })
      .then(() =&gt; {
        dispatch({ type: CREATE_GROUP_SUCCESS });
        Actions.groupList({ type: 'reset' });
      })
      .catch((errorText) =&gt; { 
        dispatch({ 
          type: CREATE_GROUP_FAILED, 
          payload: errorText
        });
      });
  };      
  </code></pre>
  
  <p><strong>What's the problem?</strong></p>
  
  <p>After the first round of </p>
  
  <pre><code>Actions.groupForm({ formType: NEW_GROUP_FORM_TYPE })}
  </code></pre>
  
  <p>and </p>
  
  <pre><code>Actions.groupList({ type: 'reset' })
  </code></pre>
  
  <p>My GroupList is succesfully refreshed, because componentWillMount is called again.</p>
  
  <p>The problem is that after the SECOND round of groupForm -> groupList my list is no more refreshed. </p>
  
  <p>Adding a console log to componentWillMount I noticed that it's no more executed.</p>
  
  <p>Why? </p>
  
  <p>What's the right way to return to the Scene 'groupList' , forcing the refresh at any cost?</p>