Daishi Kato's Read the Code logo
Daishi Kato's Read the Code
Subscribe
  • Daishi Kato's Read the Code
  • Archive
  • Page 2

Archive

How to Batch Updates in Valtio
Mar 19, 2025

How to Batch Updates in Valtio

Do You Know the queueMicrotask Function?

Daishi Kato
Daishi Kato
Using useRef for Lazy Initialization With React Compiler
Mar 15, 2025

Using useRef for Lazy Initialization With React Compiler

A Subtle Syntax Change to Make It Compiler-Friendly

Daishi Kato
Daishi Kato
How the Jotai Store API Is Inspired by the WeakMap API
Mar 12, 2025

How the Jotai Store API Is Inspired by the WeakMap API

Its Implementation Is Also Full of WeakMaps

Daishi Kato
Daishi Kato
A Challenge with Proxies for State Usage Tracking
Mar 08, 2025

A Challenge with Proxies for State Usage Tracking

One Limitation of Proxy-Based Solutions Like proxy-compare

Daishi Kato
Daishi Kato
How Proxies Help State Usage Tracking
Mar 05, 2025

How Proxies Help State Usage Tracking

proxy-compare is an Internal Library Used in Valtio

Daishi Kato
Daishi Kato
Why Proxy Cache Is Important in Valtio
Mar 02, 2025

Why Proxy Cache Is Important in Valtio

Proxy Cache Is Based on WeakMap

Daishi Kato
Daishi Kato
How to Check for Memory Leaks in Unit Tests
Feb 26, 2025

How to Check for Memory Leaks in Unit Tests

Reading Jotai Test Code and Its Dependency Library

Daishi Kato
Daishi Kato
When We Should Use WeakMap and WeakSet
Feb 24, 2025

When We Should Use WeakMap and WeakSet

Jotai Uses Them a Lot, and You Might Wonder Why

Daishi Kato
Daishi Kato
Recursive Proxies to Support Nested Objects
Feb 21, 2025

Recursive Proxies to Support Nested Objects

Two Approaches: Eager Wrapping and Lazy Wrapping

Daishi Kato
Daishi Kato
Why We Use Reflect for Proxy Handlers
Feb 18, 2025

Why We Use Reflect for Proxy Handlers

Valtio Uses It to Cover Rare Use Cases

Daishi Kato
Daishi Kato
Let's Learn the Basics of JavaScript Proxies Used in Valtio
Feb 14, 2025

Let's Learn the Basics of JavaScript Proxies Used in Valtio

Proxies Are Heavily Used in Some of My Libraries

Daishi Kato
Daishi Kato
`use-zustand` Uses Zustand Without `useSyncExternalStore`
Feb 13, 2025

`use-zustand` Uses Zustand Without `useSyncExternalStore`

The Special Behavior of `useReducer` That Cannot Be Done With `useState`

Daishi Kato
Daishi Kato
FirstBack
123
Next Last
A newsletter by Daishi Kato exploring coding and open source.

Daishi Kato's Read the Code

A newsletter by Daishi Kato exploring coding and open source.

Home

Posts

© 2025 Daishi Kato's Read the Code.

Privacy policy

Terms of use

Powered by beehiiv