title: How to auto refresh page after the success button
body: <p>I have a button that's deleting a study with mutation from graphql, how to auto refresh the page after the study was deleted ? I tried this code, maybe I did something wrong here :</p>
  <pre><code>async deletingStudy(state, studyId) {
              const result = await deleteStudy({ variables: {studyId: studyId } });
              const removeStudy = state.studies.items.filter((item) =&gt;  item.studyId !== studyId )
              state.studies.items = removeStudy;
              return state;
          }
  </code></pre>
  <p>And also this one :</p>
  <pre><code>async deletingStudy(state, studyId) {
              const result = await deleteStudy({ variables: {studyId: studyId } });
              const removeStudy = state.studies.items.map((item) =&gt;  {
                   return item.studyId !== studyId ? { ...item, status: result.data.res ) : item; })
              state.studies.items = removeStudy;
              return state;
          }
      
  </code></pre>