Duplicates in Identifier Cache

Author: CraigHarleyCreated Mar 27, 2025Updated Mar 27, 2025
Labelsneeds reproduction/info

Bug report

  • I've checked documentation and searched for existing issues and discussions
  • I've made sure my project is based on the latest MST version
  • Fork this code sandbox or another minimal reproduction.

Unfortunately, not able to reproduce this (it happens in a closed source project - but it seems to happen when attempting to replace a stores data).

Describe the expected behavior

Should replace values in identifier cache without duplicates.

Describe the observed behavior

Error: Image

Forked MST so I could add logging:

ImageImage

If I drill into the two items, they're both basically identical - but they have different states

Image Image

Any help would be appreciated.

The project is a NextJS app with the stores in a TurboRepo internal package (the problems started when I moved the stores to an internal package).