Best practices for using the react hooks like useMoralisQuery

When I use the react hooks such as useMoralisQuery in my react component should I do something extra to prevent react from making repeated calls to the moralis database? Or it’s already taken care of?

you have a parameter autofetch which you can set to either true or false.

If you set to true it will fetch it initially when the page loads and that is it.

In any case, if you want to fetch the data again you can just call the function.

1 Like

Thank you. Is there a log on the moralis website that I can check to see what requests are made by my react client to the server? Is Dashboard -> Log the right place for this?

1 Like

That is the right place to look.