Skip to content

Commit 20bac16

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

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
@@ -391,7 +391,7 @@ You can create a custom FlushPolicy special for your application needs by implem
391391
A `FlushPolicy` only needs to implement 2 methods:
392392
- `start()`: Executed when the flush policy is enabled and added to the client. This is a good place to start background operations, make async calls, configure things before execution
393393
- `onEvent(event: SegmentEvent)`: Gets called on every event tracked by your client
394-
- `reset()`: Called after a flush is triggered (either by your policy, by another policy or manually)
394+
- `reset()`: Called after a flush is triggered (either by your policy, by another policy, or manually)
395395
They also have a `shouldFlush` observable boolean value. When this is set to true the client will attempt to upload events. Each policy should reset this value to `false` according to its own logic, although it is pretty common to do it inside the `reset` method.
396396
```ts
397397
export class FlushOnScreenEventsPolicy extends FlushPolicyBase {

0 commit comments

Comments
 (0)