Skip to content

Commit 011c76f

Browse files
committed
update comment
1 parent c8da6c8 commit 011c76f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/ra-core/src/form/useWarnWhenUnsavedChanges.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export const useWarnWhenUnsavedChanges = (
5757
tx.retry();
5858
} else {
5959
if (isSubmitting) {
60-
// Retry the transition in 100ms, until the form is no longer submitting
60+
// Retry the transition (possibly several times) until the form is no longer submitting.
61+
// The value of 100ms is arbitrary, it allows to give some time between retries.
6162
setTimeout(() => {
6263
tx.retry();
6364
}, 100);

0 commit comments

Comments
 (0)