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

refactor: database updates via stream #1739

Merged
merged 4 commits into from
May 3, 2024
Merged

Conversation

matthiasn
Copy link
Owner

This PR removes the previous setup for running drift in isolates. Also, it adds a notification service for database updates, with a stream that can then be listened to by widgets, BloCs or providers for changes to the database. Unlike listening to a stream for a potentially expensive query, which then runs automatically when using drift subscriptions, it then allows listeners to re-fetch at their own leisure.

@matthiasn matthiasn merged commit 0b5a916 into main May 3, 2024
4 checks passed
@matthiasn matthiasn deleted the refactor/database_updates branch May 3, 2024 22:25
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.

None yet

1 participant