-
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
disconnect()/connect() and status property values #252
Comments
To some extent this is expected with the current API design:
I do agree that this is not an ideal API design. Some simple changes I can think of:
Would these changes help? |
Thanks for the explanations. I think that
makes sense with the explanations. I don't think
is necessary or would be clarifying to the developer or the reactive UI. Having
|
Hi,
This is a breakout, decomposition from issue #226.
When disconnecting and connecting, there appear to be issues with status property values:
status property values
db.connected
is nottrue
after await'ingdb.connect()
SyncStatus.uploading
can betrue
even thoughSyncStatus.connected
isfalse
db.connect()
is not idempotent?db.connected
is nottrue
after await'ingdb.connect()
Although there can be database consistency anomalies triggered by
disconnect()
/connect()
, this issue is only for the status property values. Maybe resolving these will expose other possible client library behavior? (A separate consistency issue will be opened.)The status mismatches can be observed with any simple
disconnect()
/connect()
behavior.The test app used code like:
Behavior when going from connected state and calling
disconnect()
, and then going from disconnected state and callingconnect()
.Behavior when calling
db.connect()
when connected.The text was updated successfully, but these errors were encountered: