We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9042024 + ac7c273 commit b5b1f3eCopy full SHA for b5b1f3e
1 file changed
packages/sdks/javascript/src/lib/Ninetailed.ts
@@ -24,6 +24,7 @@ import {
24
isIdentifyEvent,
25
isComponentViewEvent,
26
allowVariableTypeSchema,
27
+ circularJsonStringify,
28
} from '@ninetailed/experience.js-shared';
29
30
import {
@@ -505,7 +506,8 @@ export class Ninetailed implements NinetailedInstance {
505
506
// Check if the payload is already being observed for this element
507
const isPayloadAlreadyObserved = existingPayloads.some(
508
(existingPayload) =>
- JSON.stringify(existingPayload) === JSON.stringify(payload)
509
+ circularJsonStringify(existingPayload) ===
510
+ circularJsonStringify(payload)
511
);
512
513
if (isPayloadAlreadyObserved) {
0 commit comments