Repository navigation
[WP 7.2] Interactivity Router: Render only the most recently started navigation (#86515) - #86608
Conversation
#86515) * Interactivity Router: Render only the most recently started navigation A navigation that a later `navigate()` call or a back/forward traversal has superseded no longer renders its page, updates `state.url`, changes the session history or falls back to a full page load, and its promise resolves. Loading feedback it left open ends when the next navigation renders. An in-page link clicked while a `navigate()` call is loading doesn't supersede that call, nor end its lifecycle early, in browsers with the Navigation API. * Fix pull request references in CHANGELOG.md Updated bug fix descriptions in the changelog to reference the correct pull request numbers. Co-authored-by: luisherranz <luisherranz@git.wordpress.org> Co-authored-by: SantosGuillamot <santosguillamot@git.wordpress.org> (cherry picked from commit 89400c6)
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +138 B (0%) Total Size: 9.08 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Custom Completer: should allow newlines after multiple option completions in
|
This updates the pinned commit hash of the Gutenberg repository from `1b0dc90c700746b108e080263a4dc67707b750a1` to `61aba5422836aeed76a794f98d3fe0da3eb5f5d1` (head of the `wp/7.2` branch). A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@1b0dc90...61aba54. - Interactivity API: Render TrustedHTML after rejecting the same markup as a string (WordPress/gutenberg#86555). - Interactivity Router: Render only the most recently started navigation (WordPress/gutenberg#86515) (WordPress/gutenberg#86608). - Block Parser: Update error-handling for stack of unclosed blocks (WordPress/gutenberg#74427). - Block Parser: Match updates from Core's default parser (WordPress/gutenberg#86078). - Upload Media: Export `isClientSideSupportedFormat()` (WordPress/gutenberg#86541) (WordPress/gutenberg#86693). - Core fields: Restore the `editor.PostFeaturedImage.imageSize` filter in the post editor (WordPress/gutenberg#86662). - Icons: Rename file to folder, add actual file icon (WordPress/gutenberg#86526) (WordPress/gutenberg#86779). - Icons: Add "database" icon (WordPress/gutenberg#85273) (WordPress/gutenberg#86853). - [WP 7.2] Icons: Map a conservative set of Dashicons to `core-admin` icons (WordPress/gutenberg#86708) (WordPress/gutenberg#86854). - Connectors: Show filesystem credentials modal on plugin install (WordPress/gutenberg#78367). - Icons: Deprecate locks-small, lock-outline, replace lock with lock-outline svg (WordPress/gutenberg#85740) (WordPress/gutenberg#86924). - Blocks: Fix duplicated content when implicitly closing a final open block (WordPress/gutenberg#86703). - ContentEditableControl: Don't focus a disabled field on click (WordPress/gutenberg#86613). - Fix iOS keyboard not opening on a tap into another block after Done (WordPress/gutenberg#86839). Removes the icons restored by this update from the `$_old_files` array to prevent them being deleted when WordPress is updated. Developed in: #16048 Props peterwilsoncc, mamaduka, wildworks, fushar. See #66340. git-svn-id: https://develop.svn.wordpress.org/trunk@65543 602fd350-edb4-49c9-b593-d223f7449a82
This updates the pinned commit hash of the Gutenberg repository from `1b0dc90c700746b108e080263a4dc67707b750a1` to `61aba5422836aeed76a794f98d3fe0da3eb5f5d1` (head of the `wp/7.2` branch). A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@1b0dc90...61aba54. - Interactivity API: Render TrustedHTML after rejecting the same markup as a string (WordPress/gutenberg#86555). - Interactivity Router: Render only the most recently started navigation (WordPress/gutenberg#86515) (WordPress/gutenberg#86608). - Block Parser: Update error-handling for stack of unclosed blocks (WordPress/gutenberg#74427). - Block Parser: Match updates from Core's default parser (WordPress/gutenberg#86078). - Upload Media: Export `isClientSideSupportedFormat()` (WordPress/gutenberg#86541) (WordPress/gutenberg#86693). - Core fields: Restore the `editor.PostFeaturedImage.imageSize` filter in the post editor (WordPress/gutenberg#86662). - Icons: Rename file to folder, add actual file icon (WordPress/gutenberg#86526) (WordPress/gutenberg#86779). - Icons: Add "database" icon (WordPress/gutenberg#85273) (WordPress/gutenberg#86853). - [WP 7.2] Icons: Map a conservative set of Dashicons to `core-admin` icons (WordPress/gutenberg#86708) (WordPress/gutenberg#86854). - Connectors: Show filesystem credentials modal on plugin install (WordPress/gutenberg#78367). - Icons: Deprecate locks-small, lock-outline, replace lock with lock-outline svg (WordPress/gutenberg#85740) (WordPress/gutenberg#86924). - Blocks: Fix duplicated content when implicitly closing a final open block (WordPress/gutenberg#86703). - ContentEditableControl: Don't focus a disabled field on click (WordPress/gutenberg#86613). - Fix iOS keyboard not opening on a tap into another block after Done (WordPress/gutenberg#86839). Removes the icons restored by this update from the `$_old_files` array to prevent them being deleted when WordPress is updated. Developed in: WordPress/wordpress-develop#16048 Props peterwilsoncc, mamaduka, wildworks, fushar. See #66340. Built from https://develop.svn.wordpress.org/trunk@65543 git-svn-id: http://core.svn.wordpress.org/trunk@64616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This updates the pinned commit hash of the Gutenberg repository from `1b0dc90c700746b108e080263a4dc67707b750a1` to `61aba5422836aeed76a794f98d3fe0da3eb5f5d1` (head of the `wp/7.2` branch). A full list of changes included in this commit can be found on GitHub: WordPress/gutenberg@1b0dc90...61aba54. - Interactivity API: Render TrustedHTML after rejecting the same markup as a string (WordPress/gutenberg#86555). - Interactivity Router: Render only the most recently started navigation (WordPress/gutenberg#86515) (WordPress/gutenberg#86608). - Block Parser: Update error-handling for stack of unclosed blocks (WordPress/gutenberg#74427). - Block Parser: Match updates from Core's default parser (WordPress/gutenberg#86078). - Upload Media: Export `isClientSideSupportedFormat()` (WordPress/gutenberg#86541) (WordPress/gutenberg#86693). - Core fields: Restore the `editor.PostFeaturedImage.imageSize` filter in the post editor (WordPress/gutenberg#86662). - Icons: Rename file to folder, add actual file icon (WordPress/gutenberg#86526) (WordPress/gutenberg#86779). - Icons: Add "database" icon (WordPress/gutenberg#85273) (WordPress/gutenberg#86853). - [WP 7.2] Icons: Map a conservative set of Dashicons to `core-admin` icons (WordPress/gutenberg#86708) (WordPress/gutenberg#86854). - Connectors: Show filesystem credentials modal on plugin install (WordPress/gutenberg#78367). - Icons: Deprecate locks-small, lock-outline, replace lock with lock-outline svg (WordPress/gutenberg#85740) (WordPress/gutenberg#86924). - Blocks: Fix duplicated content when implicitly closing a final open block (WordPress/gutenberg#86703). - ContentEditableControl: Don't focus a disabled field on click (WordPress/gutenberg#86613). - Fix iOS keyboard not opening on a tap into another block after Done (WordPress/gutenberg#86839). Removes the icons restored by this update from the `$_old_files` array to prevent them being deleted when WordPress is updated. Developed in: WordPress#16048 Props peterwilsoncc, mamaduka, wildworks, fushar. See #66340. git-svn-id: https://develop.svn.wordpress.org/trunk@65543 602fd350-edb4-49c9-b593-d223f7449a82
What?
Backport of #86515 to
wp/7.2. The automatic cherry-pick failed with a conflict: #86515 (comment)How?
git cherry-pick -x 89400c6b082e06278f4cc0912e4ce082c742c859ontowp/7.2. Onlypackages/interactivity-router/CHANGELOG.mdconflicted. On trunk the entry sits in anUnreleasedsection above the released3.1.0version, which doesn't exist onwp/7.2. I kept only the #86515 entry and added it to the top of the existingUnreleased→Bug Fixeslist, where trunk also puts it. All the code, test and docs changes apply cleanly. Every other changed file, includingpackages/interactivity-router/src/index.ts, now matches its trunk version after #86515.Testing Instructions
npm run test:unit:vitest -- packages/interactivity packages/interactivity-router(passes locally: 29 files, 676 tests, including the 28 new tests inoverlapping-navigations.jsdom.test.ts).npm run typecheck -- packages/interactivity/tsconfig.jsonandnpm run typecheck -- packages/interactivity-router/tsconfig.json, andnpm run lint:json the changed files (all clean).I didn't run the new
router-overlapping-navigations.spec.tsend-to-end test locally; CI runs it.See #86515 for the full description and manual testing steps.
Testing Instructions for Keyboard
Not applicable: no UI changes.
Use of AI Tools
The cherry-pick, conflict resolution, and local checks were done with an AI agent (Claude Code).