Skip to content

Commit 37b2682

Browse files
authored
Change code to stop reference array being cleared
Changing code to avoid bad behavior
1 parent 17c13f3 commit 37b2682

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)