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
What you were expecting:
Dataprovider calls to not be made when clicking back into the window.
What happened instead:
When leaving the application window, and then clicking back in, the dataProvider calls relevant to the current view are re-made, resulting in unnecessary data transfer.
Steps to reproduce:
Open the application, click away (such as into the devtool console), then click inside the application window.
@fzaninotto Thank you for your attention to this issue! I have configured my queryClient as you suggested, and list view calls are not made repeatedly as shown in my issue. However, blurring and refocusing on form windows still makes redundant calls to all the form's enabled ReferenceInput calls.
What you were expecting:
Dataprovider calls to not be made when clicking back into the window.
What happened instead:
When leaving the application window, and then clicking back in, the dataProvider calls relevant to the current view are re-made, resulting in unnecessary data transfer.
Steps to reproduce:
Open the application, click away (such as into the devtool console), then click inside the application window.
Related code:
https://codesandbox.io/s/nifty-feynman-bm8ue2?file=/src/posts/PostList.tsx
Other information:
Environment
React-admin version: 4.0.0-beta.3
Last version that did not exhibit the issue (if applicable): 3.19.10
React version: 17.0.2
Browser: Chrome
Stack trace (in case of a JS error):
The text was updated successfully, but these errors were encountered: