How to Check if an AsyncNotifier is Mounted with Riverpod

AsyncNotifier does not have a mounted property and this can cause some problems in practice. This article explores some solutions and their tradeoffs. https://codewithandrea.com/articles/async-notifier-mounted/

Creato 2y | 17 feb 2023, 12:20:28


Accedi per aggiungere un commento

Altri post in questo gruppo

June 2025: Apple Liquid Glass, Software 3.0, how to use LLMs, AI-Assisted coding, Claude Code Crash Course

Also included: 12 lessons from AI pair programming, and my code review of an open-source Flutter app with 100K+ lines of code. https://codewithandrea.com/newsletter/june-2025/

27 giu 2025, 14:20:04 | Code with Andrea
Use Multiple Flutter Versions with Puro

Puro is a powerful tool that lets you install multiple versions of Flutter and easily switch between them in your projects. https://codewithandrea.com/tips/multiple-flutter-versions-puro/

25 giu 2025, 13:40:03 | Code with Andrea
Build Flutter Apps FASTER with Claude Code Opus 4

A crash course on using Claude Code to build a non-trivial Flutter project involving native integrations like speech recognition and permissions. https://codewithandrea.com/videos/build-flutter-apps-f

25 giu 2025, 13:40:03 | Code with Andrea
Code Review of Cashew App: Lessons from a Flutter App with 100k+ Downloads

In-depth code review of Cashew, a budget and expense tracking app with 4.9 star ratings, 100,000+ downloads, and just as many lines of code. https://codewithandrea.com/videos/code-review-cashew-app/

9 giu 2025, 12:40:13 | Code with Andrea
How to Configure the Updated Code Formatter in Dart 3.8

Dart 3.8 introduced an updated formatter with various configuration options. Learn what’s new and how to prepare your codebase. https://codewithandrea.com/articles/updated-formatter-dart-3-8/

21 mag 2025, 12:10:09 | Code with Andrea
Preserve Trailing Commas in Dart 3.8

Dart 3.8 introduces a new formatting option to preserve trailing commas, overriding the new formatting style introduced in Dart 3.7. https://codewithandrea.com/tips/preserve-trailing-commas-dart-3.8/

21 mag 2025, 12:10:08 | Code with Andrea
May 2025: Flutter 3.32, Dart 3.8, Material 3 Expressive, Local-First Apps with PowerSync

Also included: How Flutter works (video series), the definitive guide to Navigator 2.0, and the latest from Code with Andrea. https://codewithandrea.com/newsletter/may-2025/

21 mag 2025, 12:10:08 | Code with Andrea