9bde833419
- 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.