API call on page load or widget?

Database & APIs

I'm curious as to people's thoughts on best practice for API calls. Do you tend to perform the call on the widget or on page load? I was thinking if I performed the call on page load I could store the data in a local variable to prevent additional calls from being made.

What have you tried so far?

I use caching today, which seems to perform largely the same function, but I was wondering if anyone had advice on the best way to approach it. I seem to experience a really high number of calls if I don't have caching enabled.

Did you check FlutterFlow's Documentation for this topic?
Yes
1 reply