We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want this logic in invalidatesTags:
invalidatesTags: (_, __, body) => { return body.meetingId ? ["Meetings", "Meeting Item"] : ["Meetings"]; }
but maybe would be nice if in the returned array falsey values get ignored, so I could then write:
invalidatesTags: (_, __, body) => { return ["Meetings", body.meetingId && "Meeting Item"] }
Or at least throw an error, because in this latter variant no error is thrown but the Meetings dont refresh.
P.S. I mean, I guess I can chain the returned array with .filter(i => i)
.filter(i => i)
The text was updated successfully, but these errors were encountered:
That seems like a reasonable idea :)
PRs are welcome!
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I want this logic in invalidatesTags:
but maybe would be nice if in the returned array falsey values get ignored, so I could then write:
Or at least throw an error, because in this latter variant no error is thrown but the Meetings dont refresh.
P.S. I mean, I guess I can chain the returned array with
.filter(i => i)
The text was updated successfully, but these errors were encountered: