Skip to content

Commit

Permalink
Disable server-side intermediate derived state
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jul 24, 2024
1 parent 4ee4665 commit db61bb5
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,16 @@
'iconSectionLabel' => function() {
return wp_interactivity_get_context()['section']['label'];
},
'eachIcon' => function() use ( $icons ) {
return $icons[ wp_interactivity_get_context()['icon'] ];
},

/*
* @todo Restore this when Core supports server-side derived state in non-final position.
* @see https://github.com/WordPress/wordpress-develop/pull/7075
* Expected in WordPress 6.6.2
*/
// 'eachIcon' => function() use ( $icons ) {
// return $icons[ wp_interactivity_get_context()['icon'] ];
// },

/*
* END: Derived state
*/
Expand Down

0 comments on commit db61bb5

Please sign in to comment.