Repository navigation
Closed
Labels
[Feature] Interactivity APIAPI to add frontend interactivity to blocks.[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.
Description
This issue tracks the progress of backporting some improvements @DAreRodz and I made to the Interactivity API version included in WooCommerce.
-
Done
- iAPI: Make storePart argument optional in overloads
- Woo PR
- GB PR
- GB PR to update changelog
- iAPI: Fix duplicated nested regions
- Woo PR
- GB PR
- iAPI: Fix captured errors in
withScopegenerators
- Woo PR
- GB PR
- iAPI: Fix parsing of comments without siblings
- Woo PR
- GB PR
- iAPI: export NavigateOptions and PrefetchOptions types
- Woo PR
- GB PR
- iAPI Router: Support new styles and script modules on client-side navigation
- Woo PRs
- iAPI Router: Reimplement the full-page, client-side navigation feature
iAPI Router: Separate full-page logic from the router bundle- iAPI Router: Prevent a race condition waiting for new styles during client-side navigation
- iAPI Router: Fix how style and link elements are marked as
preload - iAPI Router: Handle new script modules on client-side navigation
- iAPI Router: Reimplement styles assets logic for client-side navigation
- GB PR
- iAPI: Introduce
AsyncActionandTypeYieldtype helpers
- Woo PR
- GB PR
- iAPI Router: Add support for new router regions with
attachTo
- Woo PR
- GB PR
- iAPI: Minor fixes to the Interactivity and Interactivity Router comments
-
Not necessary
- iAPI Router: Prevent navigation on links with
on--clickdirectives
- iAPI Router: Prevent navigation on links with
Reacted by Matias Ventura, annezazu and Carlos Bravo
Reacted by Lasida
Metadata
Metadata
Assignees
Labels
[Feature] Interactivity APIAPI to add frontend interactivity to blocks.[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.
Activity
DAreRodz commentedon Jun 13, 2025
Hi folks! 👋 This is an update on the status of the back-porting efforts.
The main changes to the iAPI router are included in this PR:
It includes a whole revamp of the client-side navigation logic, supporting new style sheets and script modules on newly visited pages. The PR required some changes to the PHP code, including a Gutenberg experiment similar to the one that existed previously, to enable experimental full-page client-side navigation.
This PR is ready for review. Some unrelated e2e tests are consistently failing, though, and need to be checked.
These PRs have also been ported:
attachTo#70421AsyncActionandTypeYieldtype helpers #70422They were constructed on top of the previously mentioned #70353, so it is better to wait for that one to be merged first. They are also ready for review.
Lastly, here is a bug fix draft for a recently discovered bug in the
data-wp-eachdirective:wp-eachitem contexts for objects with same key #70424The code is mostly ready, but I want to verify first that all possible cases are covered and the solution is robust enough. That's why that PR is still a draft.
DAreRodz commentedon Jun 13, 2025
Forgot to mention this PR from @SantosGuillamot, which solves some issues in the Image block that arose with the new client-side navigation implementation:
fabiankaegy commentedon Jun 16, 2025
I would love to see a post somewhere either on the make core or the developer blog about all the cool new enhancements that are currently getting brought back onto core here :) really exciting stuff you all ❤️
luisherranz commentedon Jun 18, 2025
Ok, all the fixes and improvements we made to the Interactivity API included in WooCommerce have been backported and should be available in the next version of Gutenberg, 21.1.
We still need to look into how to fix this initialization problem, but since we're not sure about the solution yet, we'll leave it for later and can close this tracking issue as completed.
As always, awesome work @DAreRodz, and also thanks to @SantosGuillamot for helping with the image fixes! 👏