{"library":"zustand-middleware-computed-state","type":"library","category":null,"description":"Zustand Computed State Middleware is a lightweight utility designed to seamlessly integrate derived or computed state into Zustand stores. It enables developers to define functions that calculate new state values based on the existing store state, automatically merging these computed values back into the primary store. This allows computed properties to be accessed directly alongside regular state, simplifying state management logic. The current stable version of this specific middleware is 0.1.3, representing an initial release focused on core functionality and ease of use. However, a different package with similar functionality, `zustand-computed`, is at version 2.1.1 and has seen more active development and breaking changes. As a middleware, its release cadence will likely follow its parent library, Zustand, or be driven by feature enhancements and bug fixes. A key differentiator is its 'dead simple' approach, providing direct state augmentation without the need for manual selectors in many cases, though it explicitly advises keeping computed functions light due to their re-evaluation on every state change to prevent performance bottlenecks. It ships with full TypeScript support, requiring explicit type definitions for robust usage.","language":"javascript","status":"maintenance","version":"0.1.3","tags":["javascript","react","state","manager","management","redux","store","zustand","computed","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install zustand-middleware-computed-state","imports":["import { computed } from 'zustand-middleware-computed-state'","import { create } from 'zustand'","import type { StateCreator } from 'zustand'"]},{"cmd":"yarn add zustand-middleware-computed-state","imports":[]},{"cmd":"pnpm add zustand-middleware-computed-state","imports":[]}],"homepage":null,"github":"https://github.com/cmlarsen/zustand-middleware-computed-state","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/zustand-middleware-computed-state","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-middleware-computed-state/compatibility"}}