✨ (persistance) persist user choices
Lazy load youtube video
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import { ref } from '@vue/composition-api'
|
||||
import { useGetters, useActions } from 'vuex-composition-helpers'
|
||||
import { GetterTree } from 'vuex'
|
||||
import { State, RootActions } from '@/store'
|
||||
|
||||
export const useMusic = () => {
|
||||
const hasMusic = ref(true)
|
||||
const { withMusic } = useGetters<GetterTree<State, State>>(['withMusic'])
|
||||
const { setWithMusic } = useActions<RootActions>(['setWithMusic'])
|
||||
|
||||
return {
|
||||
hasMusic
|
||||
withMusic,
|
||||
setWithMusic
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user