Ga naar hoofdinhoud

peekMyTeam

The current user's primary team, read synchronously and reactively: the group id, '' for no team, or null while it is still being read. The first call starts the read through loadMyTeam.

Import​

import { peekMyTeam } from '@conduction/nextcloud-vue'

Signature​

function peekMyTeam(): string | null

Usage​

import { peekMyTeam } from '@conduction/nextcloud-vue'

const team = peekMyTeam()
if (team === null) {
// still loading; a computed that calls peekMyTeam() re-runs when it lands
}

The filter token resolver uses it to fill @myTeam.