79520931

Date: 2025-03-19 17:19:38
Score: 0.5
Natty:
Report link

isLoading is indeed returning undefined everytime. To address this, you can use isPending

const { isPending: isUpdating, mutate: updateSettings } = useMutation({})

So react query team has introduced isPending which works exactly the same as isLoading.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Wasim Khan