You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I try the pagination example in my App but the fetch is done one time only on onMount. When I update page state nothing is done. Checking the Network tab in Google Chrome DevTools any other request is done.
This is my code
The server return 200 with the correct data.
The useEffect added to test if page change is fired and console.log woks fine.
In upper component I use Provider with some options and custom interceptors but in the request interceptor the console.log is fired only at onMount.
It seems that the change of page state is not triggered.
Someone have any idea?
Thanks in advance,
Samuele
The text was updated successfully, but these errors were encountered:
Hi Alex,
thanks for your reply. Putting the code in codesandbox everything works fine. After some test the problem was just the version of the library. I have installed the 0.2.1 version, I upgrade to 0.2.5 and everything is ok.
In the realeases note this function is added in the version 0.2.1 maybe there was some issue that was solved in newer versions.
Hi,
I try the pagination example in my App but the fetch is done one time only on onMount. When I update page state nothing is done. Checking the Network tab in Google Chrome DevTools any other request is done.
This is my code
The server return 200 with the correct data.
The useEffect added to test if page change is fired and console.log woks fine.
In upper component I use Provider with some options and custom interceptors but in the request interceptor the console.log is fired only at onMount.
It seems that the change of page state is not triggered.
Someone have any idea?
Thanks in advance,
Samuele
The text was updated successfully, but these errors were encountered: