-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. |
There was a problem hiding this 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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍 server functions are fun
packages/waku/src/router/client.ts
Outdated
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), | ||
); | ||
}); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#927 (reply in thread)