@@ -369,14 +369,39 @@ function () use ( $returns_whatever, $returns_array ) {
369369
370370 // Multiple evaluations should be serialized only once.
371371 $ this ->set_internal_namespace_stack ( 'pluginWithInvokedDerivedState ' );
372- $ this ->evaluate ( 'state.derivedProp ' );
373- $ this ->evaluate ( 'state.derivedProp ' );
374- $ this ->evaluate ( 'state.nested.derivedProp ' );
375- $ this ->evaluate ( 'state.nested.derivedProp ' );
372+ $ this ->evaluate (
373+ array (
374+ 'namespace ' => 'pluginWithInvokedDerivedState ' ,
375+ 'value ' => 'state.derivedProp ' ,
376+ )
377+ );
378+ $ this ->evaluate (
379+ array (
380+ 'namespace ' => 'pluginWithInvokedDerivedState ' ,
381+ 'value ' => 'state.derivedProp ' ,
382+ )
383+ );
384+ $ this ->evaluate (
385+ array (
386+ 'namespace ' => 'pluginWithInvokedDerivedState ' ,
387+ 'value ' => 'state.nested.derivedProp ' ,
388+ )
389+ );
390+ $ this ->evaluate (
391+ array (
392+ 'namespace ' => 'pluginWithInvokedDerivedState ' ,
393+ 'value ' => 'state.nested.derivedProp ' ,
394+ )
395+ );
376396
377397 // Only the path part that points to a derived state prop should be serialized.
378398 $ this ->set_internal_namespace_stack ( 'pluginWithInvokedDerivedStateReturningArray ' );
379- $ this ->evaluate ( 'state.nested.derivedProp.prop ' );
399+ $ this ->evaluate (
400+ array (
401+ 'namespace ' => 'pluginWithInvokedDerivedStateReturningArray ' ,
402+ 'value ' => 'state.nested.derivedProp ' ,
403+ )
404+ );
380405 }
381406 );
382407
0 commit comments