You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi -- I'm curious as to why the refresh method is marked as @useResult. Depending on analysis options, this triggers the unused_result lint.
I assume it's because of trying to encourage invalidate instead, but invalidating doesn't help when you want an async provider to load before showing a widget that watches it, such as when you're on one screen and want some "in progress" indication on the current screen before going to the next screen that uses that result.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi -- I'm curious as to why the refresh method is marked as
@useResult. Depending on analysis options, this triggers theunused_resultlint.I assume it's because of trying to encourage
invalidateinstead, but invalidating doesn't help when you want an async provider to load before showing a widget that watches it, such as when you're on one screen and want some "in progress" indication on the current screen before going to the next screen that uses that result.Beta Was this translation helpful? Give feedback.
All reactions