[wp-trac] [WordPress Trac] #63898: Add support for lazy-loaded derived state props
WordPress Trac
noreply at wordpress.org
Fri Oct 17 14:34:10 UTC 2025
#63898: Add support for lazy-loaded derived state props
--------------------------------------+------------------------------
Reporter: darerodz | Owner: luisherranz
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Interactivity API | Version: trunk
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:"60953" 60953]:
{{{
#!CommitTicketReference repository="" revision="60953"
Interactivity API: Support lazy-loaded derived state props.
Serialize on the server the paths of derived state closures accessed
during directive processing and include them in the serialized data.
During the Interactivity API hydration, if a directive reads one of those
paths before its JavaScript getter is available, keep the server-rendered
value intact instead of replacing it with `undefined`.
props darerodz.
Fixes #63898.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63898#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list