isLoading
hook only works as expected when I fetch the data for the first time. When I call the fetch
function subsequently the isLoading
hook is not getting updated properly.
const { fetch, data, error, isLoading } = useMoralisCloudFunction(
"topScores",
{
limit
},
{ autoFetch: false }
);