René's URL Explorer Experiment


Title: fix(nextjs): Remove usePathname from navigation hook for cacheComponents compat by jacekradko · Pull Request #7989 · clerk/javascript · GitHub

Open Graph Title: fix(nextjs): Remove usePathname from navigation hook for cacheComponents compat by jacekradko · Pull Request #7989 · clerk/javascript

X Title: fix(nextjs): Remove usePathname from navigation hook for cacheComponents compat by jacekradko · Pull Request #7989 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(nextjs): Remove usePathname from navigation hook for cacheComponents compat by jacekradko · Pull Request #7989 · clerk/javascript

Open Graph Description: Summary Fixes #7913 Removes usePathname() from useInternalNavFun, fixing build failures when using cacheComponents: true with dynamic routes (e.g. [id]). Root Cause The call chain was: ClerkProvide...

X Description: Summary Fixes #7913 Removes usePathname() from useInternalNavFun, fixing build failures when using cacheComponents: true with dynamic routes (e.g. [id]). Root Cause The call chain was: ClerkProvide...

Opengraph URL: https://github.com/clerk/javascript/pull/7989

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:8d4169a2-be22-ef89-29ee-fe455a0a7bff
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9CE6:2BFFB5:7707A9:AA1A65:6AFAAC42
html-safe-nonceb10906156ee324896f1198d02240239ce9d1cae53a290fa3bc502591b48c7efc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0U2OjJCRkZCNTo3NzA3QTk6QUExQTY1OjZBRkFBQzQyIiwidmlzaXRvcl9pZCI6IjcxMDQ2NDI1NzgyMjEwMTgxNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaceb6db6e7851980395cb539ef3e8aaa0625ae2fdf23868dbe22c0c0997de91001
hovercard-subject-tagpull_request:3356545505
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/clerk/javascript/7989/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/55d113f22f7c324b065a5880a8b1edc4341ebe2ea830f529839708f629d0cadf/clerk/javascript/pull/7989
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/55d113f22f7c324b065a5880a8b1edc4341ebe2ea830f529839708f629d0cadf/clerk/javascript/pull/7989
og:image:altSummary Fixes #7913 Removes usePathname() from useInternalNavFun, fixing build failures when using cacheComponents: true with dynamic routes (e.g. [id]). Root Cause The call chain was: ClerkProvide...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejacekradko
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-cache
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/7989#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F7989
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F7989
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/pull/7989
Reloadhttps://github.com/clerk/javascript/pull/7989
Reloadhttps://github.com/clerk/javascript/pull/7989
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests112 (112)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
jacekradkohttps://github.com/jacekradko
mainhttps://github.com/clerk/javascript/tree/main
jacek/fix-usepathname-cache-componentshttps://github.com/clerk/javascript/tree/jacek/fix-usepathname-cache-components
Conversationhttps://github.com/clerk/javascript/pull/7989
Commits5 (5)https://github.com/clerk/javascript/pull/7989/commits
Checkshttps://github.com/clerk/javascript/pull/7989/checks
Files changedhttps://github.com/clerk/javascript/pull/7989/files
fix(nextjs): Remove usePathname from navigation hook for cacheComponents compathttps://github.com/clerk/javascript/pull/7989#top
jacekradkohttps://github.com/jacekradko
mainhttps://github.com/clerk/javascript/tree/main
jacek/fix-usepathname-cache-componentshttps://github.com/clerk/javascript/tree/jacek/fix-usepathname-cache-components
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
Mar 5, 2026https://github.com/clerk/javascript/pull/7989#issue-4025649648
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
#7913https://github.com/clerk/javascript/issues/7913
reproduction repohttps://github.com/Pmacdon15/minimal
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
March 4, 2026 22:12https://github.com/clerk/javascript/pull/7989#commits-pushed-f931d03
fix(nextjs): Remove usePathname from useInternalNavFun for cacheCompo…https://github.com/clerk/javascript/pull/7989/commits/f931d03e8cab59aeeed4ebb60d087805721ed698
f931d03https://github.com/clerk/javascript/pull/7989/commits/f931d03e8cab59aeeed4ebb60d087805721ed698
chore: Add changeset for usePathname fixhttps://github.com/clerk/javascript/pull/7989/commits/0f1e20c50472a6b51bfc8994bdbe212b141f70be
0f1e20chttps://github.com/clerk/javascript/pull/7989/commits/0f1e20c50472a6b51bfc8994bdbe212b141f70be
test(nextjs): Remove Suspense wrapper from cache-components layout, a…https://github.com/clerk/javascript/pull/7989/commits/f82abb27a8c3c0d624f8bd2189a325757eb60572
f82abb2https://github.com/clerk/javascript/pull/7989/commits/f82abb27a8c3c0d624f8bd2189a325757eb60572
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Mar 5, 2026https://github.com/clerk/javascript/pull/7989#issuecomment-4002093325
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
5562c40https://github.com/clerk/javascript/commit/5562c40404b61b221fd7488302368dddd1dd83dd
Click here to learn what changesets arehttps://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md
Click here if you're a maintainer who wants to add another changeset to this PRhttps://github.com/clerk/javascript/new/jacek/fix-usepathname-cache-components?filename=.changeset/thirty-poets-clap.md&value=---%0A%22%40clerk%2Fnextjs%22%3A%20patch%0A---%0A%0Afix(nextjs)%3A%20Remove%20usePathname%20from%20navigation%20hook%20for%20cacheComponents%20compat%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Mar 5, 2026https://github.com/clerk/javascript/pull/7989#issuecomment-4002093374
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
Vercel for GitHubhttps://vercel.link/github-learn-more
clerk-js-sandboxhttps://vercel.com/clerk-production/clerk-js-sandbox
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/clerk-production/clerk-js-sandbox/HyiirCmBHFiQth3m4PZvX4TfB3J6
Previewhttps://clerk-js-sandbox-git-jacek-fix-usepathname-cache-components.clerkstage.dev
Commenthttps://vercel.live/open-feedback/clerk-js-sandbox-git-jacek-fix-usepathname-cache-components.clerkstage.dev?via=pr-comment-feedback-link
https://vercel.com/vercel-agent/request-review?owner=clerk&repo=javascript&pr=7989
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
Mar 5, 2026https://github.com/clerk/javascript/pull/7989#event-23282568364
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-k4n3w6j0n.clerkstage.dev
Previewhttps://clerk-js-sandbox-k4n3w6j0n.clerkstage.dev
March 5, 2026 04:23https://github.com/clerk/javascript/pull/7989#event-23282575398
View deploymenthttps://clerk-js-sandbox-k4n3w6j0n.clerkstage.dev
https://github.com/apps/pkg-pr-new
pkg-pr-newhttps://github.com/apps/pkg-pr-new
Mar 5, 2026https://github.com/clerk/javascript/pull/7989#issuecomment-4002103103
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
Open in StackBlitzhttps://pkg.pr.new/template/05195cec-0ab1-46a9-8335-5895013dce4b
5562c40https://github.com/clerk/javascript/runs/65879738135
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Mar 5, 2026https://github.com/clerk/javascript/pull/7989#issuecomment-4002104200
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
c444727https://github.com/clerk/javascript/commit/c4447272a1d873913ecb59e26d520c409cb9ab69
184528dhttps://github.com/clerk/javascript/commit/184528de90f06991dfd35de8ed749ff20df3d366
fix(react): Fix stale SSR state during cross-tab sign-out #7865https://github.com/clerk/javascript/pull/7865
feat(nextjs): Add support for Next.js 16 cache components #7595https://github.com/clerk/javascript/pull/7595
feat(nextjs): Isolate nonce fetch in Suspense boundary for PPR support #7773https://github.com/clerk/javascript/pull/7773
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-i68f7acxv.clerkstage.dev
Previewhttps://clerk-js-sandbox-i68f7acxv.clerkstage.dev
March 5, 2026 04:45https://github.com/clerk/javascript/pull/7989#event-23282973484
View deploymenthttps://clerk-js-sandbox-i68f7acxv.clerkstage.dev
test(nextjs): Add E2E tests for dynamic route with cacheComponentshttps://github.com/clerk/javascript/pull/7989/commits/184528de90f06991dfd35de8ed749ff20df3d366
184528dhttps://github.com/clerk/javascript/pull/7989/commits/184528de90f06991dfd35de8ed749ff20df3d366
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
force-pushedhttps://github.com/clerk/javascript/compare/c4447272a1d873913ecb59e26d520c409cb9ab69..184528de90f06991dfd35de8ed749ff20df3d366
c444727https://github.com/clerk/javascript/commit/c4447272a1d873913ecb59e26d520c409cb9ab69
184528dhttps://github.com/clerk/javascript/commit/184528de90f06991dfd35de8ed749ff20df3d366
Compare https://github.com/clerk/javascript/compare/c4447272a1d873913ecb59e26d520c409cb9ab69..184528de90f06991dfd35de8ed749ff20df3d366
March 5, 2026 05:00https://github.com/clerk/javascript/pull/7989#event-23283259707
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-8l4a54ib7.clerkstage.dev
Previewhttps://clerk-js-sandbox-8l4a54ib7.clerkstage.dev
March 5, 2026 05:01https://github.com/clerk/javascript/pull/7989#event-23283275183
View deploymenthttps://clerk-js-sandbox-8l4a54ib7.clerkstage.dev
Merge branch 'main' into jacek/fix-usepathname-cache-componentshttps://github.com/clerk/javascript/pull/7989/commits/5562c40404b61b221fd7488302368dddd1dd83dd
5562c40https://github.com/clerk/javascript/pull/7989/commits/5562c40404b61b221fd7488302368dddd1dd83dd
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
brkalowhttps://github.com/brkalow
nikosdouvlishttps://github.com/nikosdouvlis
March 5, 2026 13:25https://github.com/clerk/javascript/pull/7989#event-23297715316
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-mgd0cxkqt.clerkstage.dev
Previewhttps://clerk-js-sandbox-mgd0cxkqt.clerkstage.dev
March 5, 2026 13:26https://github.com/clerk/javascript/pull/7989#event-23297733565
View deploymenthttps://clerk-js-sandbox-mgd0cxkqt.clerkstage.dev
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
Mar 5, 2026 https://github.com/clerk/javascript/pull/7989#pullrequestreview-3896589551
View reviewed changes https://github.com/clerk/javascript/pull/7989/files/5562c40404b61b221fd7488302368dddd1dd83dd
https://github.com/tmilewski
tmilewskihttps://github.com/tmilewski
Mar 5, 2026 https://github.com/clerk/javascript/pull/7989#pullrequestreview-3896962244
View reviewed changes https://github.com/clerk/javascript/pull/7989/files/5562c40404b61b221fd7488302368dddd1dd83dd
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
3157c25https://github.com/clerk/javascript/commit/3157c25d5df8c0905ba4fa6693a87731b1105d44
Mar 5, 2026https://github.com/clerk/javascript/pull/7989#event-23299903017
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
March 5, 2026 14:30https://github.com/clerk/javascript/pull/7989#event-23299904551
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Mar 5, 2026 https://github.com/clerk/javascript/pull/7989#ref-pullrequest-4024812759
ci(repo): Version packages #7984 https://github.com/clerk/javascript/pull/7984
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
Mar 5, 2026 https://github.com/clerk/javascript/pull/7989#ref-pullrequest-4028714902
fix: resolve cacheComponents build error with @clerk/nextjs canary Pmacdon15/minimal#1 https://github.com/Pmacdon15/minimal/pull/1
jacekradkohttps://github.com/jacekradko
Mar 5, 2026 https://github.com/clerk/javascript/pull/7989#ref-commit-47ecfbd
test(nextjs): Add tests for useInternalNavFun navigation promise reso…https://github.com/clerk/javascript/commit/47ecfbd5c0ec8382563e4750aec535464690da50
47ecfbdhttps://github.com/clerk/javascript/commit/47ecfbd5c0ec8382563e4750aec535464690da50
#7989https://github.com/clerk/javascript/pull/7989
#2899https://github.com/clerk/javascript/pull/2899
https://github.com/jacekradko
jacekradkohttps://github.com/jacekradko
Mar 5, 2026 https://github.com/clerk/javascript/pull/7989#ref-pullrequest-4029202162
test(nextjs): Add tests for useInternalNavFun navigation promise resolution #7996 https://github.com/clerk/javascript/pull/7996
https://github.com/marcoshernanz
marcoshernanzhttps://github.com/marcoshernanz
Aug 26, 2026 https://github.com/clerk/javascript/pull/7989#ref-issue-3564095471
Setting cacheComponents=true breaks Clerk sign-in route with “Uncached data outside ” during build vercel/next.js#85490 https://github.com/vercel/next.js/issues/85490
https://github.com/Joozty
Jooztyhttps://github.com/Joozty
Oct 30, 2026 https://github.com/clerk/javascript/pull/7989#ref-issue-6115623487
@clerk/nextjs with cacheComponents: after a root param change (/en → /sk), Clerk.navigate() within /sk never resolves #10539 https://github.com/clerk/javascript/issues/10539
Deployedhttps://clerk-js-sandbox-mgd0cxkqt.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://clerk-js-sandbox-mgd0cxkqt.clerkstage.dev
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F7989
https://github.com/tmilewski
tmilewski https://github.com/tmilewski
https://github.com/clerk/javascript/pull/7989/files/5562c40404b61b221fd7488302368dddd1dd83dd
https://github.com/nikosdouvlis
nikosdouvlis https://github.com/nikosdouvlis
https://github.com/clerk/javascript/pull/7989/files/5562c40404b61b221fd7488302368dddd1dd83dd
https://github.com/brkalow
brkalow https://github.com/brkalow
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
Next Js Project fails to build while using cached components and routes with params https://github.com/clerk/javascript/issues/7913
Please reload this pagehttps://github.com/clerk/javascript/pull/7989
https://github.com/jacekradko
https://github.com/tmilewski
https://github.com/nikosdouvlis
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.