Skip to content

Conversation

@thebraid
Copy link
Contributor

When calling useMutators in a component that is used for two fields within the same form, changes to one field affect the other because the arguments passed to mutate are stored in internal state and are added to each subsequent call.

This problem is described in #291

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Playwright Test Component is ready.

@thebraid thebraid force-pushed the fix/usemutators-no-previous-args branch from a13f56e to ef88c59 Compare April 28, 2025 14:26
@thebraid thebraid force-pushed the fix/usemutators-no-previous-args branch from ef88c59 to 53e22dc Compare April 28, 2025 15:05
@thebraid thebraid force-pushed the fix/usemutators-no-previous-args branch from 456a2e2 to 53e22dc Compare April 28, 2025 15:52
@thebraid thebraid merged commit 89289a3 into main Apr 29, 2025
4 checks passed
@thebraid thebraid deleted the fix/usemutators-no-previous-args branch April 29, 2025 06:50
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.

4 participants