mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
Prevent wrong initial color on navigation on the same route
This commit is contained in:
@@ -193,7 +193,11 @@ export const FullScreenPlayer = () => {
|
||||
}, [location, setStore]);
|
||||
|
||||
const currentSong = useCurrentSong();
|
||||
const background = useFastAverageColor(currentSong?.imageUrl, true, 'dominant');
|
||||
const { color: background } = useFastAverageColor({
|
||||
algorithm: 'dominant',
|
||||
src: currentSong?.imageUrl,
|
||||
srcLoaded: true,
|
||||
});
|
||||
|
||||
return (
|
||||
<Container
|
||||
|
||||
Reference in New Issue
Block a user