Skip to content

fix: rename unstable_redirect and add example #931

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

Merged
merged 6 commits into from
Oct 3, 2024

Conversation

dai-shi
Copy link
Member

@dai-shi dai-shi commented Oct 3, 2024

Copy link

vercel bot commented Oct 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Oct 3, 2024 0:39am

Copy link

codesandbox-ci bot commented Oct 3, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@dai-shi dai-shi marked this pull request as ready for review October 3, 2024 01:27
Copy link
Collaborator

@rmarscher rmarscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

<Link to="/">Go to Home</Link>
</p>
<p>
<button onClick={() => jump()}>Jump to random page</button>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍 server functions are fun

Comment on lines 525 to 531
setTimeout(() => {
// HACK we need to wait a tick for React to start rendering.
// FIXME It doesn't feel ideal. Hope to find a better solution.
routerData[1]?.forEach((listener) =>
listener(pathname, searchParamsString),
);
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would startTransition from react be less of a hack?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, not. I'm not sure if it's React issue or Waku issue. Probably, the latter.

Meanwhile, I used another hack 3fedc84.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh, unfortunately, this causes a flicker when moving to a new page. Let me revert it and open a new issue with jump case.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dai-shi dai-shi merged commit 7ca5ad9 into main Oct 3, 2024
28 checks passed
@dai-shi dai-shi deleted the chore/rename/unstable-redirect branch October 3, 2024 14:28
dai-shi added a commit that referenced this pull request Oct 4, 2024
dai-shi added a commit that referenced this pull request Oct 4, 2024
yokos2 added a commit to yokos2/react-yoko-portfolio that referenced this pull request Feb 8, 2025
HondaKazuhiro added a commit to HondaKazuhiro/waku that referenced this pull request Feb 12, 2025
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