Skip to content

Disable onChange and route() during SSR#331

Open
developit wants to merge 8 commits into
mainfrom
ssr-fixes
Open

Disable onChange and route() during SSR#331
developit wants to merge 8 commits into
mainfrom
ssr-fixes

Conversation

@developit

@developit developit commented Aug 10, 2019

Copy link
Copy Markdown
Member

When rendered via preact-render-to-string, onChange and route() both don't make sense - updates can't be rendered since rendering is synchronous and single-pass, so we'll just disable this functionality entirely.

/cc @kristoferbaxter

When rendered via `preact-render-to-string`, `onChange` and `route()` both don't make sense - updates can't be rendered since rendering is synchronous and single-pass, so we'll just disable this functionality entirely.
Comment thread src/index.js Outdated
Comment thread src/index.js Outdated
Comment thread src/index.js Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants