mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-15 16:20:03 +00:00
Implement different DTOs for users and admins (#644)
* Implement different DTOs for users and admins * Fix performance by not creating unnecessary websocket connections
This commit is contained in:
@@ -31,7 +31,7 @@ export const libraryState = proxy<LibraryState>({
|
||||
|
||||
/** Subscribe to and process state updates from backend **/
|
||||
export async function initializeLibraryState() {
|
||||
if (libraryState.isLoaded) return libraryState;
|
||||
if (libraryState.isLoaded) return;
|
||||
|
||||
// Fetch initial library list
|
||||
const initialEntries = await LibraryEndpoint.getAll();
|
||||
@@ -57,6 +57,4 @@ export async function initializeLibraryState() {
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
return libraryState;
|
||||
}
|
||||
Reference in New Issue
Block a user