Skip to content

fix(types): make useNative optional boolean instead of literal types#319

Open
aljadan wants to merge 1 commit intomixpanel:masterfrom
aljadan:master
Open

fix(types): make useNative optional boolean instead of literal types#319
aljadan wants to merge 1 commit intomixpanel:masterfrom
aljadan:master

Conversation

@aljadan
Copy link
Contributor

@aljadan aljadan commented Sep 8, 2025

Problem

Currently, if you want to use custom storage, you’re forced to set useNative: false this causes the SDK to run in JavaScript mode which disables native features (e.g, Legacy Automatically Tracked Events)

Solution

Update the type definition of useNative from literal types to an optional boolean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant