Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
baf0bfab
Unverified
Commit
baf0bfab
authored
May 07, 2025
by
Louis DeScioli
Committed by
GitHub
May 07, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes onNavigate from transition scope (#78605)
parent
c5ee69c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
link.tsx
packages/next/src/client/app-dir/link.tsx
+12
-14
No files found.
packages/next/src/client/app-dir/link.tsx
View file @
baf0bfab
...
@@ -271,7 +271,6 @@ function linkClicked(
...
@@ -271,7 +271,6 @@ function linkClicked(
e
.
preventDefault
()
e
.
preventDefault
()
const
navigate
=
()
=>
{
if
(
onNavigate
)
{
if
(
onNavigate
)
{
let
isDefaultPrevented
=
false
let
isDefaultPrevented
=
false
...
@@ -286,15 +285,14 @@ function linkClicked(
...
@@ -286,15 +285,14 @@ function linkClicked(
}
}
}
}
React
.
startTransition
(()
=>
{
dispatchNavigateAction
(
dispatchNavigateAction
(
as
||
href
,
as
||
href
,
replace
?
'replace'
:
'push'
,
replace
?
'replace'
:
'push'
,
scroll
??
true
,
scroll
??
true
,
linkInstanceRef
.
current
linkInstanceRef
.
current
)
)
}
})
React
.
startTransition
(
navigate
)
}
}
function
formatStringOrUrl
(
urlObjOrString
:
UrlObject
|
string
):
string
{
function
formatStringOrUrl
(
urlObjOrString
:
UrlObject
|
string
):
string
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment