When a descendant of a mounted store updates its own state, we don't invalidate the cache of its ancestor mounted stores. This results in stale state appearing in the ancestor's own state.
This script can be run from the root of the repo to reproduce the bug. The second assertion will fail. Note that the first assertion is fine, because the changes are included in the new state we return from the root reducer.
When a descendant of a mounted store updates its own state, we don't invalidate the cache of its ancestor mounted stores. This results in stale state appearing in the ancestor's own state.
Repro
This script can be run from the root of the repo to reproduce the bug. The second assertion will fail. Note that the first assertion is fine, because the changes are included in the new state we return from the root reducer.