Synchronous widget builds or other way to avoid missing data during initial widget build? #3376
willsmanley
started this conversation in
General
Replies: 1 comment 1 reply
-
Since queries in drift are fundamentally running asynchronously (which is generally a good thing, because it allows us to run them on a background isolate without blocking the UI), there will always be a short loading state. If it's crucial that there is no loading even for a single frame (e.g. because of a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a widget that depends on a row of data in a drift table.
So I'm using a StreamBuilder.
However the first build always has the data missing, even though it is present in the table.
I specifically don't want to have any loading state for this widget.
Any way to force synchronicity so that widget builds always get the data if it exists? Or any other strategy?
Beta Was this translation helpful? Give feedback.
All reactions