Is this a bug in React Moralis useMoralisCloudFunction?

I am using the using Moralis useMoralisCloudFunction and it works almost fine, but when the hook is first initialized, it invokes fetch. That is not good because this is sending requests to the server with empty params.

Could someone check this?

Hey @mikiekwoods, it’s not a bug it’s a feature, but you can disable auto fetching by setting autoFetch : false. Here is a referrence in the docs for example

1 Like

Ahh! Okay I missed that bit. Thank you!

1 Like