-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
Public leptos_meta::register function #3230
Comments
It seems like there are multiple people interested in having the ability to inject things into the I think at least #2856 and this seem to result from the fact that the pre-0.7 I don't think I fully understand either the use case for what you're trying to do, or what you're asking for, though. |
I found a way to solve this problem without modifying leptos. Refer to the In addition, I think the core problem is that the functions of
|
To be honest, I'm not sure what to do with feedback like this. As far as I can tell there are no open issues reporting bugs in Perhaps there is another set of APIs that need to be exposed, which would be imperative/procedure-based, rather than declarative/component-based APIs. This relates to both your example and to #2856. I am open to doing that, if you have ideas on useful ways to do it. I am probably not the right person to design or implement those ideas, as I do not have any experience with the libraries you're citing as good examples. |
Is your feature request related to a problem? Please describe.
Currently I inject css into head via
Style
in SSR mode, and control css via custom logic in Hydrate mode.When I hydrate via the following code,
<Style>". b {}"</Style>
gets hydrated to the<style>". a{}"</style>
element instead of the<style>". b{}"</style>
element.Describe the solution you'd like
Public leptos_meta::register function. Allows passing a second parameter to control the position of the generated HTML string to avoid hydration.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
RegisterConfig
is a struct in order to expand more fields in the future to achieve the same functions as unhead.The text was updated successfully, but these errors were encountered: