Skip to content

Commit c578f3d

Browse files
authored
feat(docs): clarify init mode for flutter (#14124)
1 parent 0312672 commit c578f3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contents/docs/integrate/feature-flags-code/_snippets/feature-flags-code-flutter.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ if (await Posthog().getFeatureFlag('flag-key') == 'variant-key') { // replace 'v
2222

2323
### Ensuring flags are loaded before usage
2424

25+
> To use the `onFeatureFlags` callback, you must [set up the SDK manually](#installation) by disabling the `com.posthog.posthog.AUTO_INIT` mode.
26+
2527
Every time a user opens the app, we send a request in the background to fetch the feature flags that apply to that user. We store those flags in the storage.
2628

2729
This means that for most screens, the feature flags are available immediately – **except for the first time a user visits**.

0 commit comments

Comments
 (0)