Refetch data on scope change

environments/review-docs-pre-c-zs4ui8/deployments/15563
wvffle 2022-11-15 22:21:31 +00:00 zatwierdzone przez Ciarán Ainsworth
rodzic 76a09d92a7
commit 203f256181
4 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -94,7 +94,7 @@ const fetchData = async () => {
const store = useStore()
watch(() => store.state.moderation.lastUpdate, fetchData)
watch([page, tags, q], fetchData)
watch([page, tags, q, () => props.scope], fetchData)
fetchData()
const search = () => {

Wyświetl plik

@ -95,7 +95,7 @@ const fetchData = async () => {
const store = useStore()
watch([() => store.state.moderation.lastUpdate, excludeCompilation], fetchData)
watch([page, tags, q], fetchData)
watch([page, tags, q, () => props.scope], fetchData)
fetchData()
const search = () => {

Wyświetl plik

@ -84,7 +84,7 @@ const store = useStore()
const isAuthenticated = computed(() => store.state.auth.authenticated)
const hasFavorites = computed(() => store.state.favorites.count > 0)
watch([page, q], fetchData)
watch([page, q, () => props.scope], fetchData)
fetchData()
const search = () => {

Wyświetl plik

@ -80,7 +80,7 @@ const fetchData = async () => {
isLoading.value = false
}
}
watch([page, q], fetchData)
watch([page, q, () => props.scope], fetchData)
fetchData()
const search = () => {