npm zundo 1.5.9
v1.5.9

latest releases: 2.3.0, 2.2.0, 2.1.0...
3 years ago

What's Changed

  • Replaced omit with exclude and include by @ivoilic in #33 🎉

Usage

// Only field1 and field2 will be tracked
const useStoreA = create<StoreState>(
  undoMiddleware(
    set => ({ ... }),
    { include: ['field1', 'field2'] }
  )
);

// Everything besides field1 and field2 will be tracked
const useStoreB = create<StoreState>(
  undoMiddleware(
    set => ({ ... }),
    { exclude: ['field1', 'field2'] }
  )
);

New Contributors

Full Changelog: v1.5.8...v1.5.9

Don't miss a new zundo release

NewReleases is sending notifications on new releases.