Skip to content

EntitlementsContextValue

Defined in: src/react/index.tsx:101

What useEntitlements returns.

Property Type Description Defined in
checkout? (plan, options?) => Promise<void> Portal checkout link-out for a plan or add-on (POST /api/portal/checkout), redirecting the browser. Only with baseUrl + token. src/react/index.tsx:114
data | EntitlementsData | null The loaded data (null until the first load). src/react/index.tsx:103
error unknown The last load error (data stays at its last good value). src/react/index.tsx:107
loading boolean True until the first load settles. src/react/index.tsx:105
refresh () => Promise<void> Reload now. Resolves when the load settles. src/react/index.tsx:109