Skip to content

Commit

Permalink
Router: Fix addition and removal of empty classnames (#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 <tyxla@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Co-authored-by: jsnajdr <jsnajdr@git.wordpress.org>
  • Loading branch information
4 people authored Nov 28, 2024
1 parent f414562 commit c845cda
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 c845cda

Please sign in to comment.