PricingDocsAcademy
Bluesky ...
Tue, Dec 3, 2:29 AM

On Load API calls?

  • /attachments/1309669211232145554/1309669211953434715/image.png

    Fisher

    10 days ago

    I have a page, and On Load I want to set a bunch of things from an api call to variables. I do this several times to account for several different variables to set. My question is: Is this API call happening several times on load, one for each variable set? If so, what is the better way to do this?
    image.png
  • Lucas G

    10 days ago

    Just the one time
  • If you’re doing server-side fetching, set the variants on the success event of the api call instead
  • Fisher

    10 days ago

    Thanks @Lucas G
  • Tod

    10 days ago

    Great energy @Fisher! Your continuous contribution to the toddle Community just made you advance to Community Level 6!

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.