Skip to content

Emestie/zustand-log-and-expose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published