bundle chakra in window for CSR
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 window
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
window
How about providing an app method register_var_component to allow arbitrary CSR components rather than just the predefined ones?
providing an app method register_var_component
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 @radix-ui/themes
providing an app method register_var_component
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
@radix-ui/themes
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.
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? reflex_chakra?
Currently one can do:
bundle_library(rc.button())
and that would bundle reflex chakra
s still up to the developer to call rx.dynamic.bundle_library (...) to have their libs included in the window
yes, otherwise reflex wouldn't bundle the library in window