Skip to content

Commit

Permalink
Removed an useless sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
lucavenir committed Sep 8, 2023
1 parent 17223ca commit 54e645f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions website/docs/migration/from_state_notifier.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ Its migrated counterpart should feel like a light read.

Lifecycles between `Notifier`/`AsyncNotifier` and `StateNotifier` differ substantially.

`StateNotifier` instances are indeed bound to their `StateNotifierProvider`.
When their provider rebuilds, their exposed value, aka their `StateNotifier` instance,
is `disposed`, and then re-created (i.e. its constructor gets invoked again).

This example showcases - again - how the old API have sparse logic:

<AutoSnippet language="dart" {...oldLifecyclesOld}></AutoSnippet>
Expand Down

0 comments on commit 54e645f

Please sign in to comment.