-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
<svelte:body> tag for popups #1872
Comments
This came up before in #1133 - At the time, my main concern with it was complications to SSR, and I don't think anything has changed on that front. I'm not against this, the SSR implications are just something that needs to be borne in mind. |
For the popup case, I think it's ok to not render SSR; as the SSR content would load first, then the popup would be activated when rehydrated with state. |
Maybe there can be a placeholder (e.g. in the template On that note, would it make sense to have arbitrarily named placeholder buffers for the template? This would allow something like: <body>
%sapper.html_prefix%
<div id='sapper'>%sapper.html%</div>
%sapper.html_postfix%
</body> |
Closing as dupe of #1133. |
A quick workaround for anyone else dealing with this is to create a wrapper Overlay.svelte
|
<svelte:body>
could be a convenient way to append elements to the body as direct children, enabling popup dialogs.The text was updated successfully, but these errors were encountered: