4월 24, 2022의 게시물 표시

Publish to my blog (weekly)

Getting started | Riverpod . autoDispose . family WidgetRef ref // We use `ref.watch` to listen to another provider, and we pass it the provider // that we want to consume. Here: cityProvider // We can then use the result to do something based on the value of `cityProvider`. This way, if the request failed and the UI leaves the screen then re-enters it, then the request will be performed again. But if the request completed successfully, the state will be preserved and re-entering the screen will not trigger a new request. ...