Repository navigation
Add Enhanced Typescript-friendly Logging Middleware #2704
Unanswered
jiji-hoon96
asked this question in
Ideas
Replies: 1 comment 1 reply
|
Thanks for suggestion. The Several concerns:
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Motivation
This PR proposes an enhanced, TypeScript-friendly logging middleware for Zustand. While the existing logging example in the documentation is concise and effective, this extended version offers additional features and type safety that can be beneficial for larger, more complex projects.
Key Enhancements
LogOptionsto allow users to easily enable/disable logging or use a custom logger.Implementation
The proposed middleware extends the basic logging functionality while maintaining the spirit of Zustand's simplicity:
Usage Example
All reactions