Skip to content

Commit

Permalink
Update do_dont.mdx
Browse files Browse the repository at this point in the history
replaced text: 'local widget state' with 'Ephemeral state' along with the docs link explaining it
  • Loading branch information
Alvish0407 authored Aug 9, 2024
1 parent bb07fb1 commit 6a5d365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/essentials/do_dont.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ ElevatedButton(
)
```

## AVOID using providers for local widget state.
## AVOID using providers for Ephemeral state.

Providers are designed to be for shared business state.
They are not meant to be used for local widget state, such as for:
They are not meant to be used for [Ephemeral state](https://docs.flutter.dev/data-and-backend/state-mgmt/ephemeral-vs-app#ephemeral-state), such as for:

- storing form state
- currently selected item
Expand Down

0 comments on commit 6a5d365

Please sign in to comment.