Closed isaqueha closed 3 years ago
This PR fixes the issue https://github.com/LuisValgoi/ui5-webcomponents-react-seed/issues/28 The react-query cache was used to fix this. The staleTime property of the useQuery hook was set with 5 minutes.
react-query
staleTime
useQuery
logged
For the reviewer: Can you run a yarn test:ci to check the solution on your side as well?
yarn test:ci
Description
This PR fixes the issue https://github.com/LuisValgoi/ui5-webcomponents-react-seed/issues/28 The
react-query
cache was used to fix this. ThestaleTime
property of theuseQuery
hook was set with 5 minutes.Testing
logged
endpoint is not being re-called forever;Automated Tests
References