[PP-2] Review how we ascertain a non-scalar component source value is empty

Created on 1 April 2025, 2 days ago

Overview

In πŸ“Œ Split model values into resolved and raw Active we added this code to check for an empty component prop source:

if ((\is_scalar($value) && (string) $value === '') ||
        (\is_array($value) && $value === [])) {

But the empty array check may not always be appropriate, particularly when we start dealing with array and object values

Proposed resolution

Revisit with or after πŸ“Œ [later phase] Support matching `{type: array, …}` prop shapes Postponed

User interface changes

πŸ“Œ Task
Status

Postponed

Version

0.0

Component

Component sources

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024