Bug: Incorrect useLiveQuery response before initial sync #2179
-
|
When a new user signs in for the first time, a query like In my case, I'm trying to find out if a user has already made it through the initial onboarding flow, so a query like The lack of a proper loading state is making things really awkward. If the first sync has not yet been made, I don't understand why dexie would return |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Yes, this is an issue with dexie-cloud-addon that has been resolved and is available in the current beta. The issue has been resolved in d860df8 and can be utilized by upgrading dexie, dexie-react-hooks and dexie-cloud-addon to their Also, configure dexie to block any pending requests until a user has been initially authenticated and initially synced using db.cloud.configure({
...,
requireAuth: true,
...
}); |
Beta Was this translation helpful? Give feedback.
-
|
I missed this reply and had added some additional details to #1273 However, I just tried with the Thank you :) |
Beta Was this translation helpful? Give feedback.
Yes, this is an issue with dexie-cloud-addon that has been resolved and is available in the current beta.
The issue has been resolved in d860df8 and can be utilized by upgrading dexie, dexie-react-hooks and dexie-cloud-addon to their
@nextversions.Also, configure dexie to block any pending requests until a user has been initially authenticated and initially synced using