0.2.1 • Published 5 months ago

zustand-log-and-expose v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Log and expose middleware for zustand

This is the middleware for Zustand state manager that logs store changes in console and exposes them in window object.

Usage is simple:

const logAndExpose = createLogAndExposeMiddleware("ConsolePrefix");

Then use logAndExpose variable as middleware.

Arguments that you will pass into the creator function will prepend console message.

Exposed stores are available through window._zustand after any change of store.

0.2.1

5 months ago

0.2.0

5 months ago

0.1.0

1 year ago