Closed iSaqibShafique closed 1 month ago
Why not put that logic inside the future signal? This is create a new signal every time that will break subscribers.
If you want to do it manually there is also AsyncSignal
@rodydavis
Why I'm getting this error :
flutter: signal warning: [4|null] has been read after disposed: #0 Signal.value (package:signals_core/src/core/signal.dart:292:97)
When doing these changes : void onRetry() { loginSignal.value = const AsyncData(null); }
Because autoDispose is set to true, try removing that
Same issue, I've tried removing autoDispose and set the autoDispose to false, but same issue occurs.
Can you provide a minimal code example to reproduce the issue?
Also try hot restart instead of hot reload to see if the issue still persists
If you are looking to pass args to update a future signal then you need to use computedAsync and computedFrom
If we need to change the value of FutureSignal then how we can do this,I have searched all across the web, but haven't find any solution, like this.