Skip to content

Index-Free: Persist the lastLimboFreeSnapshot version #2152

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

Merged

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian force-pushed the mrschmidt/indexfree-synced branch from 100d85a to 6abfa65 Compare September 5, 2019 21:17
Copy link
Contributor

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

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

LGTM with 1 nit, 1 typo.

true,
false
/* syncStateChanged= */ true,
/* excludesMetadataChanges= */ false
Copy link
Contributor

Choose a reason for hiding this comment

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

⭐️

@@ -658,6 +658,8 @@ export class LocalStore {
return PersistencePromise.forEach(
viewChanges,
(viewChange: LocalViewChanges) => {
const targetId = viewChange.targetId;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: You could use this instead of viewChange.targetId in the next 2 statements as well...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -666,6 +668,21 @@ export class LocalStore {
viewChange.removedKeys,
viewChange.targetId
);

if (viewChange.fromCache) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be !viewChange.fromCache?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Tests for this are coming soon :)

@schmidt-sebastian schmidt-sebastian merged commit d32cbbe into mrschmidt/indexfree-master Sep 6, 2019
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/indexfree-synced branch September 6, 2019 15:52
@firebase firebase locked and limited conversation to collaborators Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants