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:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
LogOptions
to 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
Beta Was this translation helpful? Give feedback.
All reactions