mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 23:59:45 +08:00
- Updated the CacheService to replace the Set used for active hook tracking with a Map to maintain reference counts for each hook. - Modified methods for registering and unregistering hooks to increment and decrement counts accordingly. - Adjusted internal deletion checks to utilize the new reference counting mechanism. - Updated mock implementations in tests to reflect the changes in hook tracking. This refactor enhances the management of hook references, allowing for more precise control over hook usage and deletion. |
||
|---|---|---|
| .. | ||
| __mocks__ | ||
| apis | ||
| e2e | ||
| main.setup.ts | ||
| renderer.setup.ts | ||