How can I send contents of redux store to API?
I have an application where I am using the store.subscribe() method to listen to any changes on my redux store and cache the contents into localStorage. I have a functional component where I rehydrate the store on load from the localStorage. I next want to push an update to my API endpoint whenever the store takes an update but I want to debounce that so that it only issues an API call ever minute or two. What can be the easiest way to accomplish this?
useLazyQuery doesn’t update data between all components
I’m currently using the useXXXLazyQuery hook of rtk query for handling the login of my page, the problem is that i don’t have the latest data in my ProtectedRoute component.