Riverpod Async Notifier Provider Trace Stack | Handle Error

  Рет қаралды 1,515

dbestech

dbestech

Күн бұрын

Пікірлер: 4
@evanhossain1618
@evanhossain1618 Жыл бұрын
i have a question. why not using ConsumerWidget which is a stateless widget with ref inside the build method? you dont need to pass through constructor.
@doktormacak007
@doktormacak007 Жыл бұрын
Thats all fine but nobody is teaching riverpod a bit more in depth. Everyone knows how to fetch a list and handle it, it's documented and its very simple. Where I have difficulty with riverpod and I assume many others do as well is with more complex use cases. Let's say I have JWT authentication where I have to fetch that token and store it in local storage (easy peasy) but then for other times you want to log in with that jwt from storage how to combine async and sync states also depending on multiple providers in single provider gets confusing. Hope someone can address some more complex use cases soon its been few years since release of riverpod 2. Just to note I have been using code generating (state notifier & async state notifier)
@dbestech
@dbestech Жыл бұрын
It could be done. We know it. but we don't see much of the use cases of it. That's why we don't release it. In general we get the token from the server and save it in the local storage. You may read it back using async notifier provider it you need it. This simple use case also helps build a robust api.
@doktormacak007
@doktormacak007 Жыл бұрын
I'm not saying to build specific example I'm saying to go more in depth @@dbestech
Riverpod 2.0 Singleton Classes | Avoid Unnecessary API Calls
5:14
Live Training About App and API for Beginners
38:34
dbestech
Рет қаралды 1,6 М.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,8 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 120 МЛН
Simple login & signup screens in Flutter
16:16
Flutter with Amani
Рет қаралды 205
I want this SO BAD (but I can't have it) - Huawei Mate XT Ultimate Design
13:54
Automate Your Desktop to Save Time With These FREE Tools - Ep 10
38:38
Tool Use - A.I. Conversations
Рет қаралды 85
React Native Basics for Beginners
1:35:21
dbestech
Рет қаралды 1,5 М.
API Call with Riverpod - Flutter tutorial
12:39
Vikkybliz
Рет қаралды 3,3 М.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,8 МЛН