-
In my application, I have some functions (e.g. to load some config files) that I want to call once in the beginning, when the application starts (i.e. So far, I'm simply putting those function calls directly in the main script, where the app is created, i.e. like this: ...
my_function()
app = rx.App()
... This works when running the application, however, the function will also be executed in other situations (when building the app and things like What is the proper way to do this? I would expect that there is some kind of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Please see https://reflex.dev/docs/utility-methods/lifespan-tasks/ |
Beta Was this translation helpful? Give feedback.
Please see https://reflex.dev/docs/utility-methods/lifespan-tasks/