-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
DOM events do not get attached while using SSR #328
Comments
Hi @Swordsoul - what versions of Preact and preact-compat are you seeing this with? It might be a rendering bug in |
Used both preact When I render on a client to an empty container everything works correctly. |
Are you using a Higher Order Component at the root? If so that does sound a little bit like #296
|
6.1 is out if you're still seeing this issue. I have a hunch it'll fix it for you :) |
No luck getting it to work yet - Serverside rendering returns and epmty structure:
Used preact I will send update if I find out anything |
Sorry to pester, just curious if this is still an issue for you! |
I'm sorry but I don't have enough time right now to focus on upgrading preact to 6.1. I hope I can find some time soon to resolve the issue and have client pick up server-rendered pages. If you don't mind I'd rather keep this one opened until solution is found |
Works for me! Should be a clean upgrade to |
Upgraded to |
@Swordsoul Are these the |
from React Router v. |
Good to know. |
Fairly certain this is fixed as of |
Closing due to inactivity and it is very likely fixed, but please re-open if there's still an issue in 7.1! |
This can be closed; |
Good to know. Definitely don't hesitate to reopen or recreate the issue if you come across a repro. |
Hi, I have the following problem:
Links of react-router won't fire it's inner callback - handleClick.
setAccessor
gets callednode.addEventListener(name, eventProxy, ...)
gets callednode.addEventListener
in debug mode I checknode
in chrome DevTools Elements panel and it says that there are no event listenersgetEventListeners(node)
(chrome API) displays the event listenerMy guess is that node does not get rendered, and the node rendered during SSR remains in it's place.
Here's my server config:
render
returnsrenderToString
embeded into html templateIf you have any idea why can such problem appear that would be great. Thanks!
The text was updated successfully, but these errors were encountered: