useMemory
Reactive Memory Info.
Package: @vueuse/core
Category: Browser
Usage
import { useMemory } from '@vueuse/core'
const { isSupported, memory } = useMemory()Options
| Option | Type | Default | Description |
|---|---|---|---|
| immediate | boolean |
true | Start the timer immediately |
| immediateCallback | boolean |
false | Execute the callback immediately after calling resume |
| interval | number |
- |
Returns
| Name | Type |
|---|---|
| isSupported | useSupported |
| memory | shallowRef<MemoryInfo> |