{"action":"created","issue":{"url":"https://api.github.com/repos/developit/preact/issues/328","repository_url":"https://api.github.com/repos/developit/preact","labels_url":"https://api.github.com/repos/developit/preact/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/developit/preact/issues/328/comments","events_url":"https://api.github.com/repos/developit/preact/issues/328/events","html_url":"https://github.com/developit/preact/issues/328","id":178474518,"number":328,"title":"DOM events do not get attached while using SSR","user":{"login":"SwordSoul","id":10782581,"avatar_url":"https://avatars.githubusercontent.com/u/10782581?v=3","gravatar_id":"","url":"https://api.github.com/users/SwordSoul","html_url":"https://github.com/SwordSoul","followers_url":"https://api.github.com/users/SwordSoul/followers","following_url":"https://api.github.com/users/SwordSoul/following{/other_user}","gists_url":"https://api.github.com/users/SwordSoul/gists{/gist_id}","starred_url":"https://api.github.com/users/SwordSoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwordSoul/subscriptions","organizations_url":"https://api.github.com/users/SwordSoul/orgs","repos_url":"https://api.github.com/users/SwordSoul/repos","events_url":"https://api.github.com/users/SwordSoul/events{/privacy}","received_events_url":"https://api.github.com/users/SwordSoul/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/developit/preact/labels/feedback%20needed","name":"feedback needed","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-21T22:06:36Z","updated_at":"2016-10-11T00:59:04Z","closed_at":null,"body":"Hi, I have the following problem:\r\n\r\nLinks of react-router won't fire it's inner callback - handleClick.\r\n1. `setAccessor` gets called\r\n2. `node.addEventListener(name, eventProxy, ...)` gets called\r\n3. After executing `node.addEventListener` in debug mode I check `node` in chrome DevTools Elements panel and it says that there are no event listeners\r\n4. `getEventListeners(node)` (chrome API) displays the event listener\r\n5. After the whole render there is no event bound to the node\r\n\r\nMy guess is that node does not get rendered, and the node rendered during SSR remains in it's place.\r\n\r\nHere's my server config:\r\n```\r\n  match({ routes, history }, (error, redirectLocation, renderProps) => {\r\n    if (error) {\r\n      response.status(500).send(error.message);\r\n    } else if (redirectLocation) {\r\n      response.redirect(302, redirectLocation.pathname + redirectLocation.search);\r\n    } else if (renderProps) {\r\n      // You can check renderProps.components or renderProps.routes for\r\n      // your \"not found\" component or route respectively, and send a 404 as\r\n      // below, if you're using a catch-all route.\r\n\r\n      const html = render(\r\n        <Provider store={store}>\r\n          <RouterContext {...renderProps} />\r\n        </Provider>\r\n      );\r\n      response.status(200).send(html);\r\n    } else {\r\n      response.status(404).send('Not found');\r\n    }\r\n  });\r\n}\r\n```\r\n\r\n`render` returns `renderToString` embeded into html template\r\n\r\nIf you have any idea why can such problem appear that would be great. Thanks!"},"comment":{"url":"https://api.github.com/repos/developit/preact/issues/comments/252784550","html_url":"https://github.com/developit/preact/issues/328#issuecomment-252784550","issue_url":"https://api.github.com/repos/developit/preact/issues/328","id":252784550,"user":{"login":"developit","id":105127,"avatar_url":"https://avatars.githubusercontent.com/u/105127?v=3","gravatar_id":"","url":"https://api.github.com/users/developit","html_url":"https://github.com/developit","followers_url":"https://api.github.com/users/developit/followers","following_url":"https://api.github.com/users/developit/following{/other_user}","gists_url":"https://api.github.com/users/developit/gists{/gist_id}","starred_url":"https://api.github.com/users/developit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/developit/subscriptions","organizations_url":"https://api.github.com/users/developit/orgs","repos_url":"https://api.github.com/users/developit/repos","events_url":"https://api.github.com/users/developit/events{/privacy}","received_events_url":"https://api.github.com/users/developit/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T00:59:04Z","updated_at":"2016-10-11T00:59:04Z","body":"Works for me! Should be a clean upgrade to `6.3.0` but I understand it's not always the right time 👍"}}
{"actor":{"display_login":"developit"}}