Skip to content
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

ValueObservation always emits an initial value #729

Merged
merged 7 commits into from
Mar 10, 2020

Conversation

groue
Copy link
Owner

@groue groue commented Mar 10, 2020

This pull request removes a feature.

In previous versions, it was possible to have ValueObservation emit fresh values only for changes performed after the observation is started.

Now ValueObservation always emits an initial value, even before any change is performed.

In order to restore the previous behavior, one can ignore the first emitted value, or use DatabaseRegionObservation instead.

@groue groue added this to the GRDB 5 milestone Mar 10, 2020
@groue groue mentioned this pull request Mar 10, 2020
42 tasks
@groue groue merged commit cc16a00 into GRDB5 Mar 10, 2020
@groue groue deleted the dev/ValueObservation-initial-value branch March 10, 2020 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant