depends() stops working as expected after form submission #10123
Labels
bug
Something isn't working
forms
Stuff relating to forms and form actions
ready to implement
please submit PRs for these issues!
Describe the bug
Registering a custom dependency with
depends('load:child')
within a page's load function, and callinginvalidate('load:child')
withsetInterval
in the sibling+page.svelte
in order to mimic a single polling behaviour, causes+layout.server
's load function to be called as well after submitting form on same page.Reproduction
https://github.com/themajashurka/depends-repro
Go to /child. You should see periodic logs on server about child load function being called.
Submit form. Now layout load function is called too.
Logs
server-side
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: