Skip to content
public-library›Rules›Zustand›Keep store state serializable

Keep store state serializable

Store plain data in Zustand: strings, numbers, booleans, null, arrays, and plain objects. Keep DOM nodes, sockets, timers, promises, abort controllers, and other runtime resources in the code that owns their lifetime.

In the full rule