Reducing nested structures is tiresome. Have you tried immer?
3 Matching Annotations
- Aug 2022
-
-
-
set( produce((state) => { state.lush.forest.contains = null }) ),
-
- Oct 2020
-
github.com github.com
-
use-methods is built on immer, which allows you to write your methods in an imperative, mutating style, even though the actual state managed behind the scenes is immutable.
Tags
Annotators
URL
-