Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[preact-iso] Fix Router un-rendering incoming same-component route #870

Merged
merged 3 commits into from Sep 19, 2021

Conversation

developit
Copy link
Member

I'm not 100% sure if this is the right solution, but reverting this line fixes the issue:
https://github.com/preactjs/wmr/pull/835/files#diff-b8c8c162d167c1ad31cb8461c49197c9c5527c58c2cde64d5c082d7359878ffdL123

My thinking is that url here is the full location.path + location.search, so the worst case is that we're potentially re-rendering routers that are unaffected by a given URL change.

I'm not 100% sure if this is the right solution, but reverting this line fixes the issue:
https://github.com/preactjs/wmr/pull/835/files#diff-b8c8c162d167c1ad31cb8461c49197c9c5527c58c2cde64d5c082d7359878ffdL123

My thinking is that `url` here is the full `location.path + location.search`, so the worst case is that we're potentially re-rendering routers that are unaffected by a given URL change.
@changeset-bot
Copy link

changeset-bot bot commented Sep 17, 2021

🦋 Changeset detected

Latest commit: 3d3a392

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-iso Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Sep 17, 2021

Size Change: -6 B (0%)

Total Size: 6.31 kB

Filename Size Change
packages/preact-iso/.dist/index.********.js 1.72 kB -2 B (0%)
packages/preact-iso/router.js 2.54 kB -4 B (0%)
ℹ️ View Unchanged
Filename Size
packages/preact-iso/.dist/prerender.********.js 348 B
packages/preact-iso/hydrate.js 290 B
packages/preact-iso/index.js 195 B
packages/preact-iso/lazy.js 594 B
packages/preact-iso/prerender.js 629 B

compressed-size-action

Co-authored-by: Jovi De Croock <decroockjovi@gmail.com>
@marvinhagemeister marvinhagemeister merged commit 580226b into main Sep 19, 2021
@marvinhagemeister marvinhagemeister deleted the bugfix-iso-router-unrender branch September 19, 2021 13:22
@github-actions github-actions bot mentioned this pull request Sep 19, 2021
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.

None yet

3 participants