How to get remote loading state for synched observable? (Pull to refresh) #446
Unanswered
bastianspirek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the Supabase Sync Plugin and am very happy so far. Now I would like to implement a "pull to refresh" functionality (since I disabled realtime updates). I manage to refresh the data using syncState(...).sync():
However I can't manage to keep track of the loading state. I used observe() on my syncState and also the callback promise of .sync() but they both trigger within around 1ms of calling sync().
How can I get some kind of callback when the remote synch returns a result? Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions