Skip to content

Commit efe48cc

Browse files
niallzatorchinn1
andauthored
Update src/connections/sources/catalog/libraries/mobile/react-native/index.md
Co-authored-by: rchinn-segment <[email protected]>
1 parent 6182564 commit efe48cc

File tree

1 file changed

+1
-1
lines changed
  • src/connections/sources/catalog/libraries/mobile/react-native

1 file changed

+1
-1
lines changed

src/connections/sources/catalog/libraries/mobile/react-native/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ const client = createClient({
353353
],
354354
});
355355
```
356-
You can set several policies at a time. Whenever any of them decides it is time for a flush it will trigger an upload of the events. The rest get reset so that their logic restarts after every flush.
356+
You can set several policies at a time. When a flush occurs, it triggers an upload of the events, then resets the logic after every flush.
357357
That means only the first policy to reach `shouldFlush` gets to trigger a flush at a time. In the example above either the event count gets to 5 or the timer reaches 500ms, whatever comes first will trigger a flush.
358358
We have several standard FlushPolicies:
359359
- `CountFlushPolicy` triggers whenever a certain number of events is reached

0 commit comments

Comments
 (0)