Closed Jack-Gill-TH closed 3 months ago
analytics-react-native
Steps to reproduce Make an initial call to identify with a specific set of traits Make a second call to identify with the same set of traits
Expected behavior Identify is not forwarded to braze
Actual behavior Identify is forwarded to braze
This is because the code that checks for a duplicate payload just performs a referential equality on the two traits objects: https://github.com/segmentio/analytics-react-native/blob/0a79010b847bd36579757442aad56242f816bdae/packages/plugins/plugin-braze/src/BrazePlugin.tsx#L92
I think it's fairly unlikely that this code will be called each time with the same object reference, so this should be updated to perform some kind of deep equality.
Closing. Fix is released in v0.6.1
analytics-react-native
version: 2.15.0Steps to reproduce Make an initial call to identify with a specific set of traits Make a second call to identify with the same set of traits
Expected behavior Identify is not forwarded to braze
Actual behavior Identify is forwarded to braze
This is because the code that checks for a duplicate payload just performs a referential equality on the two traits objects: https://github.com/segmentio/analytics-react-native/blob/0a79010b847bd36579757442aad56242f816bdae/packages/plugins/plugin-braze/src/BrazePlugin.tsx#L92
I think it's fairly unlikely that this code will be called each time with the same object reference, so this should be updated to perform some kind of deep equality.