fix(web): reset infinite scroll when notification filters change

This commit is contained in:
Pujit Mehrotra
2024-11-20 09:38:33 -05:00
parent 94dfe85716
commit d0db8a098d

View File

@@ -23,6 +23,10 @@ const props = withDefaults(
/** whether we should load more notifications */
const canLoadMore = ref(true);
/** reset when props (e.g. props.type filter) change*/
watch(props, () => {
canLoadMore.value = true;
});
const { result, error, fetchMore } = useQuery(getNotifications, () => ({
filter: {