fix: backdrop flashing

This commit is contained in:
Prayag Prajapati committed 2024-04-27 10:25:38 +05:30
1 parent 38946a126b
commit e7af13970c
5 files changed
+585 -1990

No files matched your search

+2 -2
View File
@@ -360,7 +360,7 @@ const LibraryView = () => {
const scrollTrigger = useScrollTrigger({
disableHysteresis: true,
threshold: 20,
threshold: 0,
});
const [backdropItems, setBackdropItems] = useState([]);
@@ -372,7 +372,7 @@ const LibraryView = () => {
);
setBackdropItems(backdropItemsTemp);
}
}, [items.dataUpdatedAt]);
}, [items.isSuccess]);
useEffect(() => {
if (backdropItems.length > 0) {