Have to click twice to navigate with Link
Hi all, I would like to try Tanstack routing and I followed the official sample. It works, but I have to click twice on the Link to let the page load the right content:
18 Replies
dependent-tanโข3y ago
@SpiraBlitzer yep, known issue: https://github.com/TanStack/router/issues/597
GitHub
Beta.87 Link Path Changes but Page Content Fails to Load ยท Issue #5...
Describe the bug The bug is causing a problem where clicking on a link does not load the content of the requested page, even though the link path changes correctly. Your Example Website or App http...
correct-apricotOPโข3y ago
Sorry, didn't see it, thanks!
dependent-tanโข3y ago
No problem. Yeah, I'd expect the be the title of the issue to be like the title of your question. Glad to help ๐
generous-apricotโข3y ago
Sorry, I didn't went with a good title, was tired and wrote in hurry.
exotic-emeraldโข3y ago
And I thought I'm insane! xD yes it is still an issue
generous-apricotโข3y ago
it wasn't fixed in latest beta but if you want to use router use beta.86
flat-fuchsiaโข3y ago
Okay glad this was reported. I searched "click twice" and couldn't find a github issue related to that.
passive-yellowโข3y ago
Is beta.86 working for yall? I have the same issue with beta 86
generous-apricotโข3y ago
yeah i have used beta .86 and it worked fine
if you want an example i got a repo you can use to test it
passive-yellowโข3y ago
That'd be great if that's ok :D, thanks in advance btw
generous-apricotโข3y ago
GitHub
GitHub - bachiitter/quirk: An opinionated open-source template for ...
An opinionated open-source template for building full-stack web apps using React and Cloudflare Pages/Functions. - GitHub - bachiitter/quirk: An opinionated open-source template for building full-s...
generous-apricotโข3y ago
you will have to remove auth stuff from dashboard layout
passive-yellowโข3y ago
Oh it was due to having dependency of
"@tanstack/router": "^0.0.1-beta.86",
instead of
"@tanstack/router": "0.0.1-beta.86",
๐
sorry about thatgenerous-apricotโข3y ago
๐
i have no idea ๐คท๐ป and don't think it matters
passive-yellowโข3y ago
Hahah, I mean it's just the caret
^ for versioning in the package json, so it used beta 89 instead of 86generous-apricotโข3y ago
oh i didn't knew about that
passive-yellowโข3y ago
Yeahh, reference:
https://stackoverflow.com/questions/22343224/whats-the-difference-between-tilde-and-caret-in-package-json
Stack Overflow
What's the difference between tilde(~) and caret(^) in package.json?
After I upgraded to the latest stable node and npm, I tried npm install moment --save. It saves the entry in the package.json with the caret ^ prefix. Previously, it was a tilde ~ prefix.
Why are ...
generous-apricotโข3y ago
tysm