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
In the dev env for this server function the code inisValidMove is only getting executed if the following console.log is there. The only side effect in isValidMove is console logging for dev/debug purposes. Is the dead code elimination being too aggressive in this case or is this as expected?
Run the above StackBlitz and press the Submit move button and ---- isValidMove ---- will appear in the server console showing that function was called by the submitMoveSF server function
Comment out the console log on line 9 in submitMoveSF and press the Submit move button again - ---- isValidMove ---- no longer appears in the server console
Expected behavior
As a user I was expecting the code in isValidMove to run regardless of the presence of the console log in submitMoveSF
Screenshots or Videos
No response
Platform
macOS 15.2
Chrome 131, Opera 114
TanStack Router/Start 1.94.1
Additional context
No response
The text was updated successfully, but these errors were encountered:
Which project does this relate to?
Start
Describe the bug
In the dev env for this server function the code in
isValidMove
is only getting executed if the following console.log is there. The only side effect inisValidMove
is console logging for dev/debug purposes. Is the dead code elimination being too aggressive in this case or is this as expected?Your Example Website or App
https://stackblitz.com/edit/tanstack-router-muerds5c?file=app%2Froutes%2Findex.tsx,app%2Futils%2Fexample.tsx,app%2Fshared%2Fmoves.ts&preset=node
Steps to Reproduce the Bug or Issue
Submit move
button and---- isValidMove ----
will appear in the server console showing that function was called by thesubmitMoveSF
server functionsubmitMoveSF
and press theSubmit move
button again ----- isValidMove ----
no longer appears in the server consoleExpected behavior
As a user I was expecting the code in
isValidMove
to run regardless of the presence of the console log insubmitMoveSF
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: