Back to journals
Loading article…
Journals
Short notes and snippets — too brief for a full blog post, worth writing down.
Back to journals
Back to journals
TIL
Elysia + Eden Treaty means your frontend knows about new endpoints before you ship broken calls.
Date published
Source
GistWith the React Compiler enabled, manual memoization is usually noise — let the compiler prove stability.
Coerce and validate URL search state in the route definition — not scattered in components.
Converting TIL markdown to HTML in a server function keeps bundles small and syntax highlighting consistent.
1const { data, error } = await treatyClient.users.get();2if (error) throw error;3return data;
When the Elysia route changes shape, TypeScript fails in the client — not in production.