Describe the bug
After the initial reflex deploy, any changes made to rx.State methods are not applied during subsequent redeployments. Everything works fine on the local host, and I am unable to identify the cause of this issue.
I have also tried adding an on_load method to the State, but it does not have any effect either, as it is likely still being cached.
class State(rx.State):
...
def on_load(self):
self.reset()
Additionally, redeployments seem to preserve environment variables, although this behavior might be intentional (they are not on the reflex deployments list).
Is there a way to reset the State after each redeployment?
Any help would be greatly appreciated. Thank you in advance!
Expected behavior
rx.State resets after deploy
Specifics:
Python Version: 3.11
Reflex Version: 0.6.5
OS: macOS Sonoma
EDIT: I've also noticed that backend_url is not reachable, maybe this is the issue.
Describe the bug After the initial
reflex deploy
, any changes made torx.State
methods are not applied during subsequent redeployments. Everything works fine on the local host, and I am unable to identify the cause of this issue.I have also tried adding an
on_load
method to theState
, but it does not have any effect either, as it is likely still being cached.Additionally, redeployments seem to preserve environment variables, although this behavior might be intentional (they are not on the
reflex deployments list
).Is there a way to reset the State after each redeployment? Any help would be greatly appreciated. Thank you in advance!
Expected behavior rx.State resets after deploy
Specifics:
EDIT: I've also noticed that backend_url is not reachable, maybe this is the issue.