-
Notifications
You must be signed in to change notification settings - Fork 127
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
Feature: <head>
bubbling
#221
Comments
I'm super interested in what you are thinking here. If this is viable, this is pretty high priority to me. |
I think this is 100% viable, we just need to know some edge cases first that may potentially break this. For instance, I'm thinking right now what would happen if a |
Maybe I can help you think through that. Can you describe what the mechanism is, and how it differs from what we are doing with |
The behavior I'm thinking right now is that
|
<head>
to be declared across components but be rendered in a single declaration, essentially "bubbling" to a single element that is by rendering<head>
to the<html>
opening (or appended as a prefix) when the sync output is done.<head>
's content is deferred on the server to allow bubbling to occur.<head>
is also now isomorphic, which means it can work on the client. The mechanism I'm thinking is by utilizing hydration key ranges (like what we do with components and fragments currently). This should be more efficient than what we are doing for https://github.com/solidjs/solid-meta<head type="pre">
to allow users to decide where to insert the<head>
's content.Extra:
Should this allow modifying head's attributes? (in the server it's a no-brainer, but I'm thinking about the client)The text was updated successfully, but these errors were encountered: