Skip to content

Commit

Permalink
fix: variable-length deps array to useEffect().
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Jensen committed Nov 18, 2023
1 parent a56caf9 commit d9fa25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracking/TrackingProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function TrackingProvider(props: PropsWithChildren<TrackingProviderProps>
kind: "ids updated",
payload: ids
});
}, [dispatch, ...ids]);
}, [dispatch, ids.join(",")]);

/* Emit the appropriate tracking provider per config.kind. */
switch (config.kind) {
Expand Down

0 comments on commit d9fa25a

Please sign in to comment.