-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow substates to redefine/overwrite vars #3820
Labels
Comments
related to [REF-2300] |
@masenf wdyt about emitting an error/warning first? Overwriting vars could introduce more unexpected behavior and is not trivial to solve. We could add it as a feature later on if we need it |
i think it already does raise an error right? import reflex as rx
class State(rx.State):
foo: str = "bar"
class SubState(State):
foo: str = "baz"
app = rx.App()
app.add_page(rx.logo, route="/")
|
iirc it only does for base vars, not for computed vars |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quote from @masenf in #3805
The text was updated successfully, but these errors were encountered: