Added Memoization to avoid re-renders depending on the store value.
### Added Memoization Feature for Improved Performance:
I wanted to contribute to your awesome library by adding a new feature.
I've implemented memoization techniques in the **useStore** hook to avoid unnecessary re-renders when the store's value hasn't changed.
This feature significantly improves performance by reducing rendering overhead, especially in scenarios with large and complex state trees.
To ensure the correctness of the memoization feature, I've included comprehensive test cases.
These tests validate that components are not re-rendered when the store's value remains unchanged.
I believe this feature will greatly benefit users, allowing them to achieve better performance in their applications. I would greatly appreciate your review and feedback on the changes.
合并状态:未合并 关闭于 2023-06-16 1 条评论