-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed race condition caused by auto refresh updates during form submi…
…ssion
- Loading branch information
1 parent
68ed2d6
commit d5a7e87
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d5a7e87
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a possibility that this workaround breaks for Actions that finish with a call to redirectTo? I'm finding that submitting a form whose Action redirects causes autoRefreshPaused to become stuck at "true" until manually refreshing the page. Does autoRefreshPaused only reset for Actions that return 200 (rather than say 302)?
d5a7e87
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reporting! Sounds like a bug to me. Could you open an issue and produce a code example (best would be to use
ihp-new
and put it into a fresh project) where this bug is triggered? Then i could dig deeper into this :)