PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 10:24 PM

Variable not set in live version?

  • Neville

    2 months ago

    Hello folks,

    I'm setting a variable after in an API call on success. This works fine in the dev environment, but does not work in the live version.

    I'm displaying the API result data (from which the variable is set) as well as the variable value on screen. I can see the correct value from the API call and the variable is set correctly in the dev environment, but not in the live version.

    Has anyone seen similar behaviour?
    βœ…1
  • Tom Ireland

    2 months ago

    That’s odd. I don’t quite understand what you mean regarding dev environment and live version. What’s the live version? Is this the main branch or something else?
  • Neville

    2 months ago

    Thanks Tom. Erik looked at it and pointed out that I was using session variables and auto-fetch incorrectly.
    πŸ™Œ1
  • Auto-fetch executes server-side so it does not have access to session variables.
  • problem now solved πŸ˜„
  • Kudos to @Erik Beuschau
    πŸ™Œ1

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.