mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(start-plugin-core): generateFunctionId receives the generated handler name again
A custom generator received the compiler's internal key as `functionName` (`twice#1` for a name a module repeats, `fn@outer/inner` for a nested server function). An id that embeds it reached the URL unencoded: the browser dropped `#1` as a fragment and the server cut the id at `/`, so a call silently ran another server function of the module. `functionName` is again the handler name earlier versions generated (`<name>_createServerFn_handler`, `_1`, `_2`… in source order, with the same increment rules), so custom ids survive the upgrade; characters outside `[A-Za-z0-9_$]` become `_`. The e2e id maps return to the old keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5bc674ea80
commit
ad5ee67c44
13 changed files with 254 additions and 18 deletions
Loading…
Add table
Add a link
Reference in a new issue