mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +02:00
Remove persisted playqueue in localstorage
- This will break if there are enough songs in the queue. A new implementation will be added in the future
This commit is contained in:
@@ -746,6 +746,12 @@ export const usePlayerStore = create<PlayerSlice>()(
|
||||
return merge(currentState, persistedState);
|
||||
},
|
||||
name: 'store_player',
|
||||
partialize: (state) => {
|
||||
const notPersisted = ['queue', 'current'];
|
||||
return Object.fromEntries(
|
||||
Object.entries(state).filter(([key]) => !notPersisted.includes(key)),
|
||||
);
|
||||
},
|
||||
version: 1,
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user