Skip to content

Conversation

mrtnkb
Copy link
Contributor

@mrtnkb mrtnkb commented Jan 8, 2022

Due to results being returned asynchronously, Firestore use*Once methods are susceptible to race conditions when queries change.

This PR adds protection to ensure that setValue and setError are only called for results matching the current request.

See issue #194 for more details.

@chrisbianca chrisbianca changed the base branch from master to v4.0.x January 11, 2022 16:53
@chrisbianca chrisbianca changed the base branch from v4.0.x to master January 11, 2022 16:53
@chrisbianca
Copy link
Contributor

@mrtnkb Thanks for this, I've just done some testing and all looks good! I'll get this merged and then look to back port it to the v4.0.x branch so that it can be released in that stream of work rather than wait for v5 which is going to need some more testing.

@chrisbianca chrisbianca merged commit 76985ce into CSFrequency:master Jan 11, 2022
chrisbianca added a commit that referenced this pull request Jan 11, 2022
@chrisbianca
Copy link
Contributor

@chrisbianca
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants