Skip to content

DoCurious API Reference / store / selectIsSchoolContext

Function: selectIsSchoolContext()

selectIsSchoolContext(state): boolean

Defined in: store/useAuthStore.ts:525

Check if the user is currently operating in the school workspace context.

Parameters

state

AuthStore

Auth store state

Returns

boolean

true if workspace is 'school' and user has a school affiliation

DoCurious Platform Documentation