T
TanStack•8mo ago
future-harlequin

createIsomorphicFn on API routes for isomorphic cookies

Hey there! I created this abstraction for working with type-safe, isomorphic cookies. It works fine except on API routes where it fails due to the limitation of not being able to call server functions. I was wondering if there is an alternative design for my abstraction or if the team would reconsider the original limitation now that work is being done on that front 🙂 Thanks! Loving the framework so far. Very interesing ideas!
Gist
TanStack Start isomorphic cookies
TanStack Start isomorphic cookies. GitHub Gist: instantly share code, notes, and snippets.
1 Reply
foreign-sapphire
foreign-sapphire•8mo ago
based valibot user

Did you find this page helpful?