preact-router
preact-router copied to clipboard
Disable onChange and route() during SSR
trafficstars
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