specific-silverS
Refine3y ago
11 replies
specific-silver

Calling Refetch() when Edit Call is Complete?

Hi,

I have a refetch() function and a useDrawerForm.

Currently, I have refetch() called on submit. However, there's some delay between the database being updated and submission -- causing refetch() to be called before the database is actually updated.

I'm wondering if there's some boolean associated with useDrawerForm that tells you whether an edit call is complete to hopefully use alongside useEffect?
Was this page helpful?