Skip to content

Commit

Permalink
Update eager_initialization.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
rhinck authored Nov 10, 2023
1 parent b8f4b86 commit 3d4e7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/essentials/eager_initialization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ initialized when it is first used. This is useful for providers that are only
used in certain parts of the application.

Unfortunately, there is no way to flag a provider as needing to be eagerly initialized due
to how Dart works (for tree shaking purposes). One solution howerver is to forcibly
to how Dart works (for tree shaking purposes). One solution however is to forcibly
read the providers you want to eagerly initialize at the root of your application.

The recommended approach is to simply "watch" a provider in a Consumer placed right under your `ProviderScope`:
Expand Down

0 comments on commit 3d4e7ce

Please sign in to comment.