You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Calling a method with the name handler inside a server function causes the app to crash. #3698
changed the title [-]Calling a method with the handler inside a server function causes the app to crash.[/-][+]Calling a method with the name handler inside a server function causes the app to crash.[/+]on Mar 8, 2025
Okay, sorry, this actually was caused by an older server-function compiler transform confusing a nested handler() method call with the outer createServerFn().handler(...) call. The compiler has since been changed and should now verifies that the handler belongs to a server-function chain before transforming it.
With the current implementation and focused compiler tests, and a method named handler inside a server function is no longer treated as the server-function handler. I’m can actually close this as fixed.
If you still see this on a current Start release, please share a small reproduction and we’ll take another look.
Activity
[-]Calling a method with the handler inside a server function causes the app to crash.[/-][+]Calling a method with the name handler inside a server function causes the app to crash.[/+]LadyBluenotes commentedon Jul 11, 2026
Okay, sorry, this actually was caused by an older server-function compiler transform confusing a nested
handler()method call with the outercreateServerFn().handler(...)call. The compiler has since been changed and should now verifies that the handler belongs to a server-function chain before transforming it.With the current implementation and focused compiler tests, and a method named handler inside a server function is no longer treated as the server-function handler. I’m can actually close this as fixed.
If you still see this on a current Start release, please share a small reproduction and we’ll take another look.
test: cover handler-named method calls in a server fn and .ts angle-b…