zustand-ards
Version:
A library of simple opinionated utilities for zustand. zustand-ards are typesafe and designed to be easily added to an existing codebase to improve the experience of developing with zustand.
11 lines (8 loc) • 337 B
JavaScript
import { withArraySelector } from './array-selector';
export * from './array-selector';
import { withDefaultShallow } from './default-shallow';
export * from './default-shallow';
export * from './types';
// src/index.ts
var withZustandards = (storeHook) => withArraySelector(withDefaultShallow(storeHook));
export { withZustandards };