preactjs / preact-router

:earth_americas: URL router for Preact.
http://npm.im/preact-router
MIT License
1.02k stars 155 forks source link

Fix ssr memleak and sync current master branch #400

Closed sadnessOjisan closed 3 years ago

sadnessOjisan commented 3 years ago

https://github.com/preactjs/preact-router/pull/232 is not merged because of insufficient tests and not updated in a long time. But now, that PR can pass the test. This PR is the same as https://github.com/preactjs/preact-router/pull/232 but import the current master branch and run the test.

Screen Shot 2021-06-24 at 12 31 00

I'm troubled with memory leaks when SSR. (same problem https://github.com/preactjs/preact-router/issues/191), Please merge this PR🙇‍♂️