Is it good practice to fetch a collection multiple times on one page to set init values?

I have a form and I want to load initial values in the form on page load.

At the moment I am loading a collection then setting each init value with the value of the property from the collection.

Are multiple API requests made or is WeWeb smart enough to make one request then cache?

I believe weweb only make request if you use a ‘fetch collection’ block in your workflow. Calling a collection should not make any more requests.

image

1 Like