use sets for better performance
Summary by CodeRabbit
Release Notes
-
New Features
- Enhanced data access methods across various components, improving consistency and error handling.
- Updated handling of media collections to utilize
SetandMap, ensuring uniqueness and better performance.
-
Bug Fixes
- Improved error handling in components by implementing null checks and fallback values.
-
Documentation
- Updated type definitions across components to enhance type safety and clarity.
-
Refactor
- Streamlined logic for accessing and processing collections in multiple components, including the
Dashboard,Player, andQueue.
- Streamlined logic for accessing and processing collections in multiple components, including the
-
Style
- Standardized code formatting, including consistent use of semicolons and double quotes.
-
Tests
- Adjusted tests to reflect changes in data structures, ensuring accurate validation of functionality.
Edited by CodeRabbit