preact-router icon indicating copy to clipboard operation
preact-router copied to clipboard

Disable onChange and route() during SSR

Open developit opened this issue 6 years ago • 0 comments
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

developit avatar Aug 10 '19 01:08 developit