Patch Changes
-
#6976
f8a232aa8ef42d22ee7021e9ae3a9b112c88a941
Thanks @erenkurnaz! - fix(codemod): correctly rename isLoading to isPending in mutation hooksCodemod previously was expecting mutation hooks to have isPending. Since isPending is introduced with react-query@5 it wasn't correct.
-
#6976
f8a232aa8ef42d22ee7021e9ae3a9b112c88a941
Thanks @erenkurnaz! - fix: Fix useOne hook transformation in codemod to correctly handle query fieldsFixed the
use-query-and-result-fields-in-useOne-hook
transformation to properly move all query-related fields (isLoading
,refetch
,error
,status
,isSuccess
,isStale
,fetchStatus
,failureCount
) into thequery
object when transforming from v4 to v5 format.