refactor: sync masto (#1121)
This commit is contained in:
parent
eb1f769e32
commit
4422a57f49
81 changed files with 397 additions and 367 deletions
|
@ -6,6 +6,10 @@ import { useHead } from '#head'
|
|||
|
||||
export const isHydrated = ref(false)
|
||||
|
||||
export const onHydrated = (cb: () => unknown) => {
|
||||
watchOnce(isHydrated, () => cb(), { immediate: isHydrated.value })
|
||||
}
|
||||
|
||||
/**
|
||||
* ### Whether the current component is running in the background
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue