-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
bundle chakra in window for CSR #4042
Conversation
Question for reviewers, this solution isn't very scalable, it would be better if there's a way to register what libraries are going to be in |
How about providing an app method |
well, it would need to happen at the library level (because we don't expect people to register every single component they are going to use), but that's a bit abstracted (we don't really mention radix much, so how would you figure out you have to write |
Well the core components could be "automatically" registered, while third party comp would have to be registered manually if they want them for dynamic rendering. Ideally people don't need to know the actual name of the library, just passing the component to register would be enough to infer the library name. |
This works to an OK degree if it was only one component per library, but what should the pass then are using chakra? |
Currently one can do: bundle_library(rc.button()) and that would bundle reflex chakra |
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.
so as i read it, it's still up to the developer to call rx.dynamic.bundle_library
at module level (i.e. not dynamically), to have their libs included in the window
?
yes, otherwise reflex wouldn't bundle the library in window |
* bundle chakra in window for CSR * remove repeated chakra ui reference * use dynamically generated libraries * remove js from it
No description provided.