-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
Live queries do not always emit new data when a condition is specified #1243
Comments
Just thought I'd mention that I tried to replicate this issue using the livesotope demo, but was unable to (for that simpler database). Specifically, I...
Thus, the issue @RedShift1 is hitting must be due to something specific about their database schema, or some environmental factor. Perhaps it is due to the It's also possible that the issue was not hit in my case due to my having updated a few postgraphile/websocket-related dependencies. I described my brief changes to the demo here. In summary, I updated these packages:
@RedShift1 It maybe is worth updating the dependencies above in your project, to see if that resolves the issue. (if not, perhaps my earlier guess is correct that it's related to something about your database' schema/index setup) (Sorry that I can't be of more help, but I'm new to PostGraphile, and attempted to replicate this issue for my own selfish reasons of evaluating possible limitations of the live-query system. For my usage so far, it seems to be working -- so unfortunately the above is as far as I'll be investigating this issue for now [unless I end up hitting it myself, of course].) |
Please try with a boolean datatype and don't forget the condition on the subscription. |
I just tried my test again with a boolean datatype, and get the same (successful) result. Subscription code:
Outcome: Entries show and hide from the demo page as expected, whenever I change the As guessed earlier, there must be something specific about your schema, subscription, or environment that's causing the issue. (my guess is an outdated library somewhere in your dependency chain, or something about your edge->node layering or index usage -- though I'm no db expert) |
I'm submitting a ...
PostGraphile version: 4.5.5
Minimal SQL file that can be loaded into a clean database:
Steps to reproduce:
Start a live query as follows:
Current behavior:
Expected behavior:
When the transition onTheClock: true -> onTheClock: false happens, a new list is sent via a websocket update message.
The text was updated successfully, but these errors were encountered: