Skip to content

Commit 64f6701

Browse files
authored
Merge pull request #4714 from segmentio/niallzato-patch-1
Change code to stop reference array being cleared
2 parents 17c13f3 + 37b2682 commit 64f6701

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
@@ -372,7 +372,7 @@ const policiesIfNetworkIsUp = [
372372
// Create our client with our policies by default
373373
const client = createClient({
374374
// ...
375-
flushPolicies: policies,
375+
flushPolicies: [...policiesIfNetworkIsUp],
376376
});
377377
// If Segment detects the user disconnect from the network, Segment removes all flush policies.
378378
// That way the Segment client won't keep attempting to send events to Segment but will still

0 commit comments

Comments
 (0)