Skip to content
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

Separate get_hooks and get_hooks_internal for stable output #2710

Merged
merged 7 commits into from
Mar 15, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Feb 23, 2024

When downstream component wrappers depend on State when writing hooks, they need to be assured that all internal hooks (events, var hooks, memoized handlers, etc) will be rendered prior to user-defined hooks.

This also makes it less likely for downstream components to feel the need to overwrite get_hooks (no underscore) directly and break internal functioning of Reflex components.

When downstream component wrappers depend on State when writing hooks, they
need to be assured that all internal hooks (events, var hooks, memoized
handlers, etc) will be rendered prior to user-defined hooks.

This also makes it less likely for downstream components to feel the need to
overwrite `get_hooks` (no underscore) directly and break internal functioning
of Reflex components.
@masenf masenf marked this pull request as ready for review March 5, 2024 17:35
picklelo
picklelo previously approved these changes Mar 13, 2024
…-output

Fix conflicts moving from radix/chakra form submit to base el form submit
@masenf masenf added this to the v0.4.5 milestone Mar 14, 2024
@masenf masenf merged commit b89a18f into main Mar 15, 2024
62 checks passed
@masenf masenf deleted the masenf/stabilize-hook-output branch March 15, 2024 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants