isprojects / mstform

Mobx State Tree Form-library
MIT License
81 stars 3 forks source link

NEXTPY-305 -- Fixes for zeroIsEmpty implementation #172

Closed randywanga closed 1 year ago

randywanga commented 1 year ago

Fixed a bug where zeroIsEmpty did not work with maybe, maybeNull or dynamic converters.

emptyImpossible and emptyValue now optionally take a function with state converter options. This means they can also be made dynamic. I made a few helper functions to determine which version to use.

Added better test coverage.