stewie1570 / leaf-validator

Declarative state progression & validation for React apps.
MIT License
4 stars 1 forks source link

3rd type of diff API: normalized leaf diff #169

Open stewartanderson3 opened 1 year ago

stewartanderson3 commented 1 year ago

Exactly the same as a leaf diff except it doesn't recurse into arrays of string.

Arrays of string in normalized models will be just an array of keys whose purpose is to just say what order the keys are to be used.

This array needs to be seen as a single value. It should be treated as a value type but only when an array is an array of string.

https://redux.js.org/usage/structuring-reducers/normalizing-state-shape#designing-a-normalized-state