vazco / uniforms

A React library for building forms from any schema.
https://uniforms.tools
MIT License
1.93k stars 239 forks source link

Initialize model with default values #1343

Closed kestarumper closed 1 month ago

kestarumper commented 1 month ago

Closes #1066.

Changes

Notes

Example

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.19%. Comparing base (d2b924a) to head (f51be5f). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1343 +/- ## ========================================== + Coverage 94.18% 94.19% +0.01% ========================================== Files 226 226 Lines 3664 3672 +8 Branches 989 988 -1 ========================================== + Hits 3451 3459 +8 Misses 81 81 Partials 132 132 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

kestarumper commented 1 month ago
kestarumper commented 1 month ago

@piotrpospiech

Playground link doesn't work for me (I installed dependencies, built everything and started doc website). I've got this error:

TypeError: Cannot read properties of undefined (reading 'length')

Works for me. I run npm run reset && npm ci (node v20.10.0).

piotrpospiech commented 1 month ago

@kestarumper I tried it with Node v20.10 and npm 10.2.5. I ran npm run reset && npm ci. Still the same issue:

TypeError: Cannot read properties of undefined (reading 'length')

However, it is working for @Monteth.