reset form state within dialog without useEffect? - TanStack