mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +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);
|
return merge(currentState, persistedState);
|
||||||
},
|
},
|
||||||
name: 'store_player',
|
name: 'store_player',
|
||||||
|
partialize: (state) => {
|
||||||
|
const notPersisted = ['queue', 'current'];
|
||||||
|
return Object.fromEntries(
|
||||||
|
Object.entries(state).filter(([key]) => !notPersisted.includes(key)),
|
||||||
|
);
|
||||||
|
},
|
||||||
version: 1,
|
version: 1,
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user