-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Replication alive$ #809
Replication alive$ #809
Conversation
Looks good. |
This is done. As a curiosity, why do we have dist files in the git repo? Wouldn't it make sense to include it in the |
They are commited so people can try the latest version without having to do a build. |
docs-src/replication.md
Outdated
Emits `true` or `false` depending if the replication is alive - data is transmitting properly between databases. A `false` value implies the connection has died -if you're replicating to a remote database, for example. It will only emit `false` if there are pending changes that couldn't be replicated -it won't emit immediately after the connection dies. | ||
|
||
```js | ||
replicationState.active$.subscribe(active => console.dir(active)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: active
-> alive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @motin ! Solved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rafamel Great, but you missed the last of the three active
instances
Emits `true` or `false` depending if the replication is alive - data is transmitting properly between databases. A `false` value implies the connection has died -if you're replicating to a remote database, for example. It will only emit `false` if there are pending changes that couldn't be replicated -it won't emit immediately after the connection dies. | ||
|
||
```js | ||
replicationState.alive$.subscribe(alive => console.dir(active)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: console.dir(active)
-> console.dir(alive)
@@ -59,6 +59,13 @@ Emits `true` or `false` depending if the replication is transmitting data. A `fa | |||
replicationState.active$.subscribe(active => console.dir(active)); | |||
``` | |||
|
|||
### alive$ | |||
Emits `true` or `false` depending if the replication is alive - data is transmitting properly between databases. A `false` value implies the connection has died -if you're replicating to a remote database, for example. It will only emit `false` if there are pending changes that couldn't be replicated -it won't emit immediately after the connection dies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: missing spaces after the dashes in "-if" and "-it"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a native Spanish speaker; in Spanish dashes go without inner spaces. Is that not the case for English?
Adds alive$
Relates to #763