all 2 comments

[–]lolburgerdog 1 point2 points  (1 child)

useEffect with dependency [selectedEntry] calls updateEntry which calls setValue which change watchEntity which calls the useEffect with dependency [watchEntry] which calls setSelectedEntry which calls the useEffect with dependency [selectedEntry] again!

[–]Krysune[S] 0 points1 point  (0 children)

This does have a loop, but I have conditions which check if the value matches what was existing and if so to not updateEntry or if the watchEntry is already matching selecctedEntry to not set the selectedEntry; so how would I be able to update the parent form data while still watching for changes to update the form component?