We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using ${app.render()} in a template literal, I get undefined. That seems to be caused by a bug in toString():
${app.render()}
toString()
var result = { head: '', addComponent: addComponent }; ... var html = AddToCart._render(result, state, options); return { html: html, head: result.head, css: { code: cssCode, map: null }, toString: function toString() { return result.html; <-- probably should return html } };
Workaround: use ${app.render().html} in template literals.
${app.render().html}
The text was updated successfully, but these errors were encountered:
fix toString method in SSR output - closes #1044
f8362fe
Merge pull request #1046 from sveltejs/gh-1044
8472142
fix toString method in SSR output
Your fix was entirely correct, of course 😀 released 1.49.3
Sorry, something went wrong.
Sync kit docs (sveltejs#1044)
kit
ee4395c
sync kit docs Co-authored-by: Rich-Harris <1162160+Rich-Harris@users.noreply.github.com>
Successfully merging a pull request may close this issue.
When using
${app.render()}
in a template literal, I get undefined. That seems to be caused by a bug intoString()
:Workaround: use
${app.render().html}
in template literals.The text was updated successfully, but these errors were encountered: