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
[REF-1158] Move chakra-only deps to chakra lib #2171
Conversation
Remove chakra workarounds from other parts of the framework.
7e3ecc0
to
aca4121
Compare
I think this was originally a perf optimization... how big is the impact for the possibility of introduced bugs?
reflex/components/libs/chakra.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we move this to a chakra/base.py
or libs/chakra/base.py
?
Though I'm not sure we actually need the libs
folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Needs a rebase and we can merge
from reflex.utils.imports import ImportDict, ImportVar | ||
|
||
# Imports to be included in every Reflex app. | ||
DEFAULT_IMPORTS: ImportDict = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome :)
Allow DebounceInput to work with both chakra and radix UI components.
Remove chakra workarounds from other parts of the framework.
This allows for a completely chakra-free and radix-free experience using basic elements and tailwind css.
Module size top 10 with chakra and radix components used
Module size top 10 without component lib:
Next itself is still huge, but thankfully this compiles down to a reasonable size for the given functionality!