Skip to content

Commit

Permalink
feat: store selected to local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
letwebdev committed Feb 21, 2024
1 parent 8f52140 commit 73dc4a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ControlPanel.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup lang="ts">
import type { RemovableRef } from "@vueuse/core"
import { useSettingsStore } from "@/stores/settings"
import { useCoreDataStore } from "@/stores/coreData"
import { useFetchingDataStore } from "@/stores/fetchData"
Expand All @@ -10,7 +11,7 @@ const fetchingData = useFetchingDataStore()
const { fetchLists, fetchList, resetItemsInQueue } = fetchingData
const liveDataCacheInitialized = useFetchingDataStore().getLiveDataCacheInitializationState
const selected = ref<ListName[]>(["topstories"])
const selected: RemovableRef<ListName[]> = useLocalStorage("selectedLists", ["topstories"])
function fetchMore() {
resetItemsInQueue()
Expand Down

0 comments on commit 73dc4a2

Please sign in to comment.