-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
information neededFurther information is requestedFurther information is requested
Description
Which project does this relate to?
Start
Describe the bug
When using isomorphic functions, the new compiler ignores the server() and client() when split across 2 different variables. I believe this happens because its looking at a specific ast node, and when used cant trace back to the original ref
Your Example Website or App
https://gist.github.com/nikuscs/f407a4561cf7f71fc25fe4703709c4cb
Steps to Reproduce the Bug or Issue
Check the gist, define a isomorphicfn in a variable and use it in another one. It will throw a no-op warning, because both server and client fns are stripped.
Expected behavior
To be able to resolve back the original variable so we can compose iso functions
Screenshots or Videos
No response
Platform
- Router / Start Version: [e.g. 1.121.0]
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Browser Version: [e.g. 91.1]
- Bundler: [e.g. vite]
- Bundler Version: [e.g. 7.0.0]
Additional context
Relevant discussion : https://discord.com/channels/719702312431386674/1453166955988123829
coderabbitai
Metadata
Metadata
Assignees
Labels
information neededFurther information is requestedFurther information is requested