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
With the React Compiler enabled, manual memoization is usually noise — let the compiler prove stability.
Date published
Elysia + Eden Treaty means your frontend knows about new endpoints before you ship broken calls.
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.
React 19's compiler analyzes component render paths and inserts memoization where it can prove it helps.
1function UserList({ users }: { users: User[] }) {2 const sorted = users.toSorted((a, b) => a.name.localeCompare(b.name));3 return sorted.map((user) => <UserRow key={user.id} user={user} />);4}
No useMemo wrapper needed — the compiler handles it when dependencies are stable.