Skip to content

fix: graceful fallback when statsig client is not initialized#11

Merged
xingxinglieo merged 1 commit into
mainfrom
fix/graceful-fallback
Feb 6, 2026
Merged

fix: graceful fallback when statsig client is not initialized#11
xingxinglieo merged 1 commit into
mainfrom
fix/graceful-fallback

Conversation

@xingxinglieo
Copy link
Copy Markdown
Contributor

FlagStore.resolve() and ParamStore.resolve() now catch the getStatsigClientSync() throw and return fallback values instead of crashing, preventing module-level side-effects from blowing up when the entry point has not called initStatsigClient() yet.

FlagStore.resolve() and ParamStore.resolve() now catch the
getStatsigClientSync() throw and return fallback values instead of
crashing, preventing module-level side-effects from blowing up
when the entry point has not called initStatsigClient() yet.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 6, 2026

📦 Canary version published!

pnpm add statsig@0.0.3-canary.pr11.734d7bc
# or
pnpm add statsig@canary

@xingxinglieo xingxinglieo merged commit b64c7b2 into main Feb 6, 2026
5 checks passed
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