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

WordPress Trac noreply at wordpress.org
Thu Aug 8 11:28:46 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 dev-        |     Focuses:
  reviewed                                       |
-------------------------------------------------+-------------------------
Changes (by luisherranz):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58869" 58869]:
 {{{
 #!CommitTicketReference repository="" revision="58869"
 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.

 Reviewed by adamsilverstein and gziolo.
 Merges [58825] to the 6.6 branch.

 Props jonsurrell, luisherranz, adamsilverstein, gziolo.

 Fixes #61741.
 }}}

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


More information about the wp-trac mailing list