til
TIL: Nov 3
tilengineering
TIL: When dealing with dual-source state (like a client-side useRouter() refresh and server-side cache tags), always wrap cross-module updates in database transactions and use atomic cache revalidation. By explicitly invalidating parent tags (e.g., podcast) alongside specific paths, you prevent stale UI state from lingering in dependent modules during concurrent mutations.