UNPKG
@xsprtd/nuxt-api
Version:
latest (2.0.1)
2.0.1
2.0.0
1.4.0
1.3.0
1.2.1
1.2.0
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
Nuxt API Authentication and Http Client
github.com/xsprtd/nuxt-api
xsprtd/nuxt-api
@xsprtd/nuxt-api
/
dist
/
runtime
/
composables
/
useProcessing.js
16 lines
(15 loc)
•
308 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import
{ ref }
from
"vue"
;
export
const
useProcessing
= (
) => {
const
processing =
ref
(
false
);
const
startProcessing
= (
) => { processing.
value
=
true
; };
const
stopProcessing
= (
) => { processing.
value
=
false
; };
return
{ processing, startProcessing, stopProcessing }; };