You've already forked AstralRinth
forked from didirus/AstralRinth
Migrate to Turborepo (#1251)
This commit is contained in:
13
apps/frontend/src/composables/loading.js
Normal file
13
apps/frontend/src/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