CrovverProvider initializes the SDK, fetches the tenant’s subscription status, and makes it available to all child components via context.
Props
config
Example
Dynamic tenantId
If your user can switch between workspaces, you can change tenantId dynamically. The provider will re-fetch the subscription for the new tenant when the value changes:
Server Components (Next.js)
CrovverProvider is a client component. If your root layout is a server component, wrap the provider in a "use client" file: