RTK query createApi is it possible to set a pollingInterval globally?

Viewed 7

So basically you can pass pollingInterval as an option to your hooks:

https://redux-toolkit.js.org/rtk-query/usage/polling

But I would like to have set globally for more simplicity so I don't have to pass the option on every hook on every page/component I have.

It doesn't seem an option of createApi. Is there a clean solution for this ?

0 Answers
Related