jwstegemann / fritz2

Easily build reactive web-apps in Kotlin based on flows and coroutines.
https://www.fritz2.dev
MIT License
653 stars 28 forks source link

add mapNull for Inspectors #769

Closed metin-kale closed 1 year ago

metin-kale commented 1 year ago

Currently we have mapNull only for Stores but not for Inspectors.

When writing Validations, the path have to exactly match the substores-path, therefore we need the same way of building SubInspectors like for Stores.

We have Store.mapNull()

but no Inspector.mapNull()

Edit: removed mapByElement and mapByIndex, they already exist