Skip to content

Conversation

@amir-arad
Copy link
Contributor

Problem: The .listen() callback fires for collection fields (ArraySchema/MapSchema) even when other fields change.

Impact: Both cases trigger the field-level change callback with different proxy references (previousValue !== value is always true), causing false positives. Libraries that monitor state changes (like colyseus-events) receive duplicate events or cannot detect actual field replacements.

Solution: Improve change detection to check refIds for collection types before firing field-level callbacks. Only emit when the container instance itself changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant