Commit 4fa6600
Erik Rasmussen
fix: preserve validation pause state and forward isEqual in re-registration
- Check form.isValidationPaused() before calling pauseValidation() so we
don't inadvertently resume validation that was already paused externally
(e.g. by ReactFinalForm during setup). Mirrors the pattern used in
ReactFinalForm.tsx.
- Pass configRef.current.isEqual through the temporary registerField call
so dirty/pristine calculation uses the field's configured equality
comparator rather than the default reference equality.
Addresses remaining CodeRabbit review comments.1 parent bcc1ef9 commit 4fa6600
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
245 | 248 | | |
246 | 249 | | |
247 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
248 | 254 | | |
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
252 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
253 | 261 | | |
254 | 262 | | |
255 | 263 | | |
| |||
0 commit comments