cherry-studio/tests/__mocks__/renderer
fullex 26ea33f8c8 refactor(CacheService): change hook tracking from Set to Map for reference counting
- 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.
2026-01-06 10:01:04 +08:00
..
CacheService.ts refactor(CacheService): change hook tracking from Set to Map for reference counting 2026-01-06 10:01:04 +08:00
DataApiService.ts feat: enhance mock services for improved testing capabilities 2026-01-04 10:24:35 +08:00
PreferenceService.ts fix: typecheck/test:lint/format:check 2025-09-16 15:26:36 +08:00
useCache.ts fix(cache): enforce dot-separated naming for template keys 2026-01-05 13:17:58 +08:00
useDataApi.ts feat: update useDataApi hook and documentation for improved loading states and refetch logic 2026-01-05 00:12:01 +08:00
usePreference.ts fix: typecheck/test:lint/format:check 2025-09-16 15:26:36 +08:00