mailwal

RD#581 Fixing a hydration mismatch error and UI flicker

React Digest

Fixing a hydration mismatch error and UI flicker
9 minutes by Giorgi Moniava

Server-side rendering sends HTML to the browser before JavaScript loads, then React "hydrates" it to make the page interactive. A hydration mismatch happens when the server-rendered HTML differs from what React produces on the client, often because client-only data like localStorage was used during rendering. Common fixes include delaying rendering until after the component mounts, using an inline script to apply saved state to the DOM before hydration, or suppressing warnings where mismatches are expected and harmless.

AI doesn't know your business. HubSpot does.
sponsored by HubSpot

Your AI only sees what you paste in, so you’re stuck moving context in and carrying answers out. Join our live webinar to see how HubSpot connects to the AI you already use, grounding every answer in real business context. Ask, act, and update your CRM without leaving the chat, with built-in governance. HubSpot is the #1 CRM connector in Claude and ChatGPT.

Optimizing TanStack start
18 minutes by Sarthak Mishra

A TanStack Start home page scored 73 on mobile despite being prerendered, because the browser was downloading code and assets it never needed. The biggest gains came from removing a site-wide image manifest loaded on every page, lazy-loading closed dialogs, subsetting fonts and adding a metric-matched fallback to prevent layout shift, and stopping hidden navigation images from downloading on mobile. Critical CSS extraction and delayed hydration helped but added maintenance overhead and produced inconclusive score improvements on their own.

A select should tell you something
6 minutes by Ahmad Alfy

Browsers can now style the select element and display rich content inside each option, not just plain text. A font picker can show each typeface live, a time zone picker can show the current local time, and a people picker can show job titles so identical names become distinct choices. It still works as a regular select, with native keyboard behaviour and form submission, and falls back cleanly in browsers that don't support it yet.

Replacing Next.js with Astro to save $10,000 on infra
9 minutes by Ryan Selden

Owner rebuilt its restaurant website infrastructure, cutting page load times by 87% and boosting per-restaurant revenue by over 4%. They replaced a slow Next.js setup with Astro running on Cloudflare's edge network, serving cached pages close to users and only loading JavaScript where needed. The overhaul also saved up to $10,000 a month in infrastructure costs and pushed mobile performance scores from 44 to over 90.

Introducing TanStack Redact
4 minutes by Tanner Linsley

TanStack Redact is a smaller drop-in replacement for React in the browser that reduces JavaScript bundle size without any code changes. It works with TanStack Start, Vite, Vinext, and Next.js, saving between 20% and 70% of client JavaScript depending on the framework. Version 0.2.0 is now stable after proving itself in real production apps. The main tradeoff is synchronous rendering, so heavy updates can block input.

And the most popular article from the last issue was:

newsletters


Would you like to advertise in the newsletter? Check out our media kit and get in touch.


© 2026 Bonobo Press

Jakub Chodounsky (dba. Bonobo Press)
1/25 Mana Street
Wellington, New Zealand
Privacy Policy