[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
0

Configure Feed

Select the types of activity you want to include in your feed.

Simplify dead letter data clear

Just reset state on GET pending instead of using effect cleanup in react component

FoxxMD (Oct 13, 2023, 11:38 AM EDT) 884134ca 0c90de78

+6 -8
-8
src/client/deadLetter/DeadPage.tsx
··· 19 19 const dead = (props: PropsFromRedux) => { 20 20 const { 21 21 data = [], 22 - clearDeadLetter 23 22 } = props; 24 - 25 - useEffect(() => { 26 - return () => { 27 - console.log('clearing dead letter'); 28 - clearDeadLetter(); 29 - } 30 - }, []); 31 23 32 24 let [searchParams, setSearchParams] = useSearchParams(); 33 25 const {
+6
src/client/deadLetter/deadLetterDucks.ts
··· 64 64 }, 65 65 extraReducers: (builder) => { 66 66 builder.addMatcher( 67 + (action) => deadApi.endpoints.getDead.matchPending(action), 68 + (state, action) => { 69 + state = deadAdapter.getInitialState(); 70 + } 71 + ) 72 + builder.addMatcher( 67 73 (action) => deadApi.endpoints.getDead.matchFulfilled(action), 68 74 (state, action) => { 69 75 deadAdapter.setAll(state, action.payload);