Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix refresh button breaks useGetList result with application cache #4829

Merged
merged 1 commit into from
May 19, 2020

Conversation

fzaninotto
Copy link
Member

Fixes #4817

@fzaninotto fzaninotto added the RFR Ready For Review label May 19, 2020
@@ -120,7 +121,8 @@ const useQueryWithStore = (
loaded: boolean;
} => {
const { type, resource, payload } = query;
const requestSignature = JSON.stringify({ query, options });
const version = useVersion(); // used to allow force reload
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now even if the caller forgets to pass the version in the query options, the side effect will re-execute when a REFRESH_VIEW action is dispatched.

@djhi djhi added this to the 3.5.3 milestone May 19, 2020
@djhi djhi merged commit 98d00c7 into master May 19, 2020
@djhi djhi deleted the fix-refresh-cache branch May 19, 2020 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No data from useGetList after refresh
2 participants