You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I'm sure you might have faced this issue befor.
I'm having a complex form and I'm udating the value via reset in useEffect so, now there are many APi callshappening when user starts typing and API call is over all the default value resets,I'm facing a bit of issue with this problem . useEffect(() => { const labelName = getValues('label'); const descriptionValue = getValues('description'); reset({ name: props.currentNode?.data?.name, label: labelName || props.currentNode?.data?.label, description: descriptionValue || props.currentNode?.data?.description, ...defaultFormValuesSelection( props.currentNode?.data, props.currentNode.type, notificationTemplateData, attributes ), }); }, [notificationTemplateData, attributes, reset, props.currentNode]);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm sure you might have faced this issue befor.
I'm having a complex form and I'm udating the value via reset in useEffect so, now there are many APi callshappening when user starts typing and API call is over all the default value resets,I'm facing a bit of issue with this problem .
useEffect(() => { const labelName = getValues('label'); const descriptionValue = getValues('description'); reset({ name: props.currentNode?.data?.name, label: labelName || props.currentNode?.data?.label, description: descriptionValue || props.currentNode?.data?.description, ...defaultFormValuesSelection( props.currentNode?.data, props.currentNode.type, notificationTemplateData, attributes ), }); }, [notificationTemplateData, attributes, reset, props.currentNode]);
Beta Was this translation helpful? Give feedback.
All reactions