ITADN

afterNavigate call resets timers in onUpdate

#677Closedsccunningham7 创建于 2026-02-16
bug
S
sccunningham7commented
- [X] Before posting an issue, read the [FAQ](https://superforms.rocks/faq) and search the previous issues. **Description** When attempting to update to a version beyond 2.27.4, I found that my `goto` calls inside `onUpdate` handlers were no longer setting any of their timers correctly. I am using SuperForms for search forms where I programmatically update the URL to store the state of the search. A call to `goto` in a form handler or calling submit on the form programmatically `onMount` (I assume a race condition), causes all timers to be reset. Removing the code added in #624 (#622) fixes this issue. I'm not sure the best way to indicate we don't want to reset the timers. I'm using SPA mode exclusively with Zod4. Currently stuck at 2.27.4. **If applicable, a MRE** [MRE](https://www.sveltelab.dev/j839z38su646far)
关闭于 2026-02-22 0 条评论