[wp-trac] [WordPress Trac] #64122: Interactivity API: Add data-wp-router-region directive to the script modules of interactive blocks

WordPress Trac noreply at wordpress.org
Tue Oct 21 11:31:00 UTC 2025


#64122: Interactivity API: Add data-wp-router-region directive to the script
modules of interactive blocks
--------------------------------------+--------------------------
 Reporter:  luisherranz               |       Owner:  luisherranz
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9
Component:  Interactivity API         |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+--------------------------
Changes (by luisherranz):

 * owner:  (none) => luisherranz
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61019" 61019]:
 {{{
 #!CommitTicketReference repository="" revision="61019"
 Interactivity API: Support for loadOnClientNavigation.

 Uses the `wp_script_attributes` filter to add a `data-wp-router-options`
 directive with a `loadOnClientNavigation: true` property for all the
 interactive blocks that are compatible with client-side navigation to let
 the Interactivity API router determine which modules it can safely load
 during client-side navigation.

 Props luisherranz, westonruter.
 Fixes #64122.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64122#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list