-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
useTransactionQuery cache & query issue with variables #1162
Comments
Adding this seems to solve the issue
|
Still seeing issues. Extending this to more letters (a, b, e, g), I'm seeing issues on the first fetches for each letter. Subsequent fetches work good as seen on the video. Bildschirmaufnahme.2022-10-07.um.15.05.14.mov |
This is with the PR fix applied: |
With the PR applied, still get the error with |
I will eventually get here but my list is long right now. @bkniffler Would you like to work on this? |
Using a very simple query, useTransactionQuery seems to lag behind with the results if variables change in some cases. In this example, we have a variable that filters a list. It can be either
a
orb
.Initially, the button will say
Toggle b
, because letter is a. The query result is correct, a list filtered bya
. Clicking the button will change letter tob
. Results change as expected, everything starting withb
is shown. Clicking again will switch letter back toa
, but now the results will remain to theb
list. Clicking further, the results will always be the ones from the previous variables.Hope this makes sense
Bildschirmaufnahme.2022-10-07.um.14.27.06.mov
The text was updated successfully, but these errors were encountered: