0.3.0 • Published 1 year ago

zustand-log-and-expose v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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({
    logFunction(...args) {
        console.log("Prefix", ...args);
    },
});

Then use logAndExpose variable as middleware.

You can use any kind of logger function.

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

0.3.0

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago