cherry-studio/packages/shared/data
fullex 9bde833419 feat(preferences): implement optimistic and pessimistic update strategies in PreferenceService
- Introduced `PreferenceUpdateOptions` interface to configure update behavior.
- Enhanced `set` and `setMultiple` methods in `PreferenceService` to support both optimistic and pessimistic update strategies, allowing for immediate UI feedback or database-first updates.
- Updated `usePreference` and `useMultiplePreferences` hooks to accept options for flexible update strategies.
- Improved handling of concurrent updates with request queues and rollback mechanisms for optimistic updates.
- Enhanced documentation in hooks to clarify usage of update strategies.
2025-08-15 16:48:22 +08:00
..
preferences.ts feat(preferences): update preferences structure and enhance shortcut management 2025-08-15 12:54:24 +08:00
types.d.ts feat(preferences): implement optimistic and pessimistic update strategies in PreferenceService 2025-08-15 16:48:22 +08:00