T
TanStack3mo ago
conscious-sapphire

What's the best way to have server only utility functions?

I recently had a code splitting issue, i tried refactoring some duplicated code into utility functions and the build started failing. Is there a way to mark a function as server only? I intend these functions to be used by multiple server fns
1 Reply
equal-jade
equal-jade3mo ago
GitHub
router/packages/start-client-core/src/tests/envOnly.test-d.ts at 53...
🤖 Fully typesafe Router for React (and friends) w/ built-in caching, 1st class search-param APIs, client-side cache integration and isomorphic rendering. - TanStack/router

Did you find this page helpful?