{"library":"zustand-mutative","type":"library","category":null,"description":"zustand-mutative is a middleware for Zustand that integrates the Mutative library, enabling efficient and convenient immutable state updates using a mutable syntax. It allows developers to modify Zustand state directly, similar to libraries like Immer, but claims significantly higher performance (2-6x faster than spread operations, over 10x faster than `zustand/middleware/immer`). The current stable version is 1.3.1. Releases appear to be driven by dependency updates and minor fixes, with new versions roughly every few months, often coinciding with updates to `mutative` or `zustand` itself. Its key differentiator is its performance advantage over other immutable update helpers within the Zustand ecosystem while providing a familiar mutable-style API for state management.","language":"javascript","status":"active","version":"1.3.1","tags":["javascript","zustand","mutative","middleware","immutable","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install zustand-mutative","imports":["import { mutative } from 'zustand-mutative';","import { create } from 'zustand';","create<State & Actions>()(mutative((set) => ({ ... })));"]},{"cmd":"yarn add zustand-mutative","imports":[]},{"cmd":"pnpm add zustand-mutative","imports":[]}],"homepage":null,"github":"https://github.com/mutativejs/zustand-mutative","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/zustand-mutative","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/zustand-mutative/compatibility"}}