Skip to content

Support hooks in custom components (state, addEvents)#2234

Merged
picklelo merged 1 commit intomainfrom
masenf/custom-components-state
Nov 30, 2023
Merged

Support hooks in custom components (state, addEvents)#2234
picklelo merged 1 commit intomainfrom
masenf/custom-components-state

Conversation

@masenf
Copy link
Copy Markdown
Collaborator

@masenf masenf commented Nov 30, 2023

Allow memoized components to depend on state and add events to the queue via useContext.

Allow memoized components to depend on state and add events to the queue via
useContext.
masenf added a commit to reflex-dev/reflex-web that referenced this pull request Nov 30, 2023
* Close the sidebar with an on_click event instead of middleware
* Avoid on_mount event to set_initial_sidebar_index
  * Use a cached var instead
* Remove now unused middleware

Depends on reflex-dev/reflex#2234
masenf added a commit to reflex-dev/reflex-web that referenced this pull request Nov 30, 2023
* Close the sidebar with an on_click event instead of middleware
* Avoid on_mount event to set_initial_sidebar_index
  * Use a cached var instead
* Remove now unused middleware

Depends on reflex-dev/reflex#2234
@picklelo picklelo merged commit 3c7af9f into main Nov 30, 2023
@masenf masenf deleted the masenf/custom-components-state branch December 6, 2023 22: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