Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Datastore network indicator (fixes #1069) #1070

Merged
merged 8 commits into from
Feb 25, 2021

Conversation

kingsleyzissou
Copy link
Contributor

Description

  • Provide the ability to subscribe to datastore network status changes.
Checklist
  • npm test passes
  • npm run build works
  • tests are included
  • documentation is changed or added

@kingsleyzissou
Copy link
Contributor Author

Published 0.3.19

@@ -16,7 +16,7 @@
"@types/react-dom": "^16.9.0",
"antd": "~4.4.1",
"graphql.macro": "^1.4.2",
"offix-datastore": "0.3.17",
"offix-datastore": "0.3.19",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do 0.4.0 :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome will do that now

}
setReplicating(!replicating)
}
// const toggleReplication = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this is disabled

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh should have deleted. I removed it now because I have the change in network status stopping and starting the replication automatically

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should happen anyway in the core right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is more for the OVP stuff, because turning switching to offline mode in chrome doesn't really stop the replication or subscriptions from coming in.

@kingsleyzissou kingsleyzissou changed the title Datastore network indicator Datastore network indicator (fixes #1069) Feb 25, 2021
@kingsleyzissou kingsleyzissou merged commit 475ae08 into master Feb 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants