You've already forked AstralRinth
forked from didirus/AstralRinth
Move files in preparation for monorepo migration
This commit is contained in:
13
apps/knossos/composables/loading.js
Normal file
13
apps/knossos/composables/loading.js
Normal file
@@ -0,0 +1,13 @@
|
||||
export const useLoading = () => useState('loading', () => false)
|
||||
|
||||
export const startLoading = () => {
|
||||
const loading = useLoading()
|
||||
|
||||
loading.value = true
|
||||
}
|
||||
|
||||
export const stopLoading = () => {
|
||||
const loading = useLoading()
|
||||
|
||||
loading.value = false
|
||||
}
|
||||
Reference in New Issue
Block a user