Skip to content

Commit

Permalink
Router: Fix addition and removal of empty classnames (WordPress#67378)
Browse files Browse the repository at this point in the history
* Router: Fix addition and removal of empty classnames

* Actually prevent transition

Co-authored-by: tyxla <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: jsnajdr <[email protected]>
  • Loading branch information
4 people authored and im3dabasia committed Dec 4, 2024
1 parent c66fc41 commit b101e07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/router/src/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export function useHistory() {
! options.transition
) {
performPush();
return;
}

await new Promise< void >( ( resolve ) => {
Expand Down

0 comments on commit b101e07

Please sign in to comment.