title: SWR not re-rendering when mutate is called
body: <p>I'm trying to create a product list with pagination using SWR and SSR. In order to do this, i'm passing initial data to SWR, and when pagination change, I call a mutate function, bounded to the first SWR request.</p>
  <p>The problem is that the page isn't re-rendered, when I print the result of the mutate function, i see that the data has changed but the page just isn't re-rendered and i can't understand why.</p>
  <p><strong>Code</strong> :</p>
  <pre><code>const ProductList = ({initialData, endpoint, productLimit, productCount}) =&gt; {
      const [pageIndex, setPageIndex] = useState(1)
      const [isLoading, setIsLoading] = useState(false);
  
      console.log(`${endpoint}?_limit=${productLimit}&amp;_start=${pageIndex * productLimit ?? 0}`)
      const {data, mutate} = useSWR(
          `${endpoint}?_limit=${productLimit}&amp;_start=${pageIndex * productLimit ?? 0}`,
          fetcher,
          {initialData: initialData}
      )
  
      return (
          &lt;div className={cls([styles.product_list_container])}&gt;
              &lt;div&gt;
                  &lt;div className={cls([styles.product_list])}&gt;
                      {data.map(product =&gt; {
                          return (
                              &lt;ProductCard productData={product}/&gt;
                          )
                      })}
                  &lt;/div&gt;
                  &lt;Pagination
                      pageIndex={pageIndex}
                      onclick={async (index) =&gt; {
                          setPageIndex(index);
                          setIsLoading(true)
                          mutate().then(resp =&gt; {
                              setIsLoading(false)
                          })
                      }}
                      pageNumber={Math.ceil(productCount / (productLimit) - 1)}/&gt;
  
              &lt;/div&gt;
              {isLoading &amp;&amp;
                  &lt;LoadingBackdrop/&gt;
              }
          &lt;/div&gt;
      )
  }
  </code></pre>