title: polling interval of rtk query is not working
body: <p>I'm in the process of implementing rtk-query and am having problems with the <a href="https://redux-toolkit.js.org/rtk-query/usage/polling" rel="nofollow noreferrer">polling</a> feature of the library.</p>
  <pre><code>### service.js
  export const api = createApi({
    ...,
    endpoints: (builder) =&gt; ({
      getBlockPurchase: builder.query({
        query: (id) =&gt; `block-purchases/${id}/`,
      }),
    }),
  });
  
  ### component.js
  function BlockPurchaseComponent({ blockPurchaseId }) {
    const { data, error } = useGetBlockPurchaseQuery(blockPurchaseId, {
      pollingInterval: 3000,
    });
  
    ...
  }
  </code></pre>
  <p>The query works fine once, however subsequent polling requests are not sent. In the docs it makes it seem simple, however it looks like I'm missing something. Please let me know any other information that would be useful for helping to find the solution.</p>
  <p>EDIT:
  Here was the middleware that was setup incorrectly:</p>
  <pre><code>const store = configureStore({
    reducer: persistedReducer,
    middleware: getDefaultMiddleware({
      serializableCheck: {
        ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
      },
      ...api.middleware,
    }),
  });
  </code></pre>