[wp-trac] [WordPress Trac] #61741: Interactivity API: Directives cannot access derived state properties on the server

WordPress Trac noreply at wordpress.org
Mon Jul 29 11:08:34 UTC 2024


#61741: Interactivity API: Directives cannot access derived state properties on the
server
--------------------------------------+--------------------------
 Reporter:  jonsurrell                |       Owner:  luisherranz
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.6.2
Component:  Interactivity API         |     Version:  6.6
 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:"58825" 58825]:
 {{{
 #!CommitTicketReference repository="" revision="58825"
 Interactivity API: Allow server derived state to appear in non-final
 position

 In some cases, derived state returns an associative array. Directives may
 wish to continue to access properties of the associative array, when using
 the syntax `state.arrayReturnedByClosure.property`. This patch continues
 evaluating the path after the associative array has been returned by the
 Closure.

 Props jonsurrell, luisherranz.

 Fixes #61741.
 }}}

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


More information about the wp-trac mailing list