Skip to content

Commit cc8a1a7

Browse files
docs: fix yieldToPaint docstring to match queueMicrotask fallback
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent b98b76f commit cc8a1a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/form-core/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ export function isFieldInGroup(groupName: string, fieldName: string) {
747747
/**
748748
* Yields so UI updates (e.g. isSubmitting spinners) can paint before submit
749749
* validation runs. Uses double requestAnimationFrame in browsers and
750-
* setTimeout(0) elsewhere (tests, SSR).
750+
* queueMicrotask elsewhere (tests, SSR) to avoid fake-timer deadlocks.
751751
*/
752752
function isVitest(): boolean {
753753
return (

0 commit comments

Comments
 (0)