splitch

DocsSDKSDK_CONTEXT_INVALID.md

SDK_CONTEXT_INVALID

Cause

createSplitchBrowserClient was given an Evaluation Context without a non-empty targetingKey.

Fix

Pass context: { targetingKey: … } at construction. The browser client is static-context: that key is fixed for the client's lifetime and is not a credential.

Related codes