blogs
Yes, the Next.js Router Cache is Actually Good
The Next.js Router Cache is controversial to say the least. But I think Vercel and the Next.js team have very good reasons to implement it, and the new `staleTimes` option to configure it should be considered to only be an escape hatch at best. This is why.
Posted
Throwing Expected Errors in React Server Actions
Throwing expected errors (e.g., wrong password, username already taken) in React server actions is not as straightforward as a simple `throw new Error()`. Why? And what can you do about it?
Posted
Walking on Singapore MRT Lines
I walked on all Singapore MRT lines. Yes!!!
Posted
When NOT to Use "use client" and "use server"
It's surprisingly common to see people overusing these directives. This article explains when I would use or NOT use them.
Posted
Handling SVG Icon Path Opacity Overlap
How to handle SVG icons with semi-transparent colours having path opacity overlapping in intersections points.
Posted