## TL;DR

For "on('change', ...)": upgrade to the React Native SDK release containing the identify-queueing fix (PRs #842 and #867). Reported in LaunchDarkly: React Native SDK leads to unexpected on('change',...) calls reverting previous flag evaluations.

```text
on('change', ...)
```

## Steps

1. Upgrade to the React Native SDK release containing the identify-queueing fix (PRs #842 and #867). The root cause was overlapping identify calls producing out-of-order re-evaluations and stale change handlers; the fix queues identifies and disconnects update handlers for closed data sources. The reporter tested the fix and got the expected change events, then upgraded to the released versions and accepted the closure. Also avoid initializing multiple SDK instances on the same environment (the cache is per environment), and you can set `debug: true` in the SDK options to trace identify ordering if problems persist.

## When to use

Use this skill when you run into "React Native SDK leads to unexpected `on('change', ...)` calls reverting previous flag evaluations".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Edge cases

- Also avoid initializing multiple SDK instances on the same environment (the cache is per environment), and you can set debug: true in the SDK options to trace identify ordering if problems persist.
