C15T Logo

Overview

The store is a global state that can be used to access the consent manager's state.

tocOn this page

[Error: Could not find section "overview" in ../shared/store/overview.mdx]

Usage

import { createConsentManagerStore } from 'c15t';

const store = createConsentManagerStore(consentManager);

const hasFunctionality = store.getState().has('functionality');

Returns

[Error: Could not find section "returns" in ../shared/store/overview.mdx]