Skip to content

Conversation

@markerikson
Copy link
Collaborator

Updated the array plugin to to call handleCrossReference on values that have been added to an array. This fixes cases like:

const oldState = [{ nestedArray: [] }];

const newState = produce(oldState, (state) => {
  const newVal = { ...state[0] };
  state.push(newVal);
});

Fixes #1209

@markerikson markerikson merged commit cdccf1a into main Feb 10, 2026
2 checks passed
@github-actions
Copy link
Contributor

🎉 This PR is included in version 11.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested draft arrays not commited with enableArrayMethods

1 participant