Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set addMoreFields derived value so useEffect is stable #4669

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Aug 23, 2022

would throw a console error when any values for editing table fields are changed.
This commit correctly sets the initial value of the addMoreRows toggle when nextMaxRows is set

Error thrown: "The final argument passed to useEffect changed size between renders. The order and size of this array must remain constant."

would throw a console error when any values for editing table fields are changed.
This commit correctly sets the initial value of the addMoreRows toggle when nextMaxRows is set

Error thrown: "The final argument passed to useEffect changed size between renders. The order and size of this array must remain constant."
@karrui karrui merged commit 69c9e1b into form-v2/develop Aug 23, 2022
@karrui karrui deleted the form-v2/fix-rhf-edittable-defaultvalues branch August 23, 2022 08:37
@justynoh justynoh mentioned this pull request Oct 5, 2022
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.

2 participants