Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/lib/src/fg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ export async function initFeatureGates({
},
);

await client.initializeAsync();
try {
await client.initializeAsync();
} catch(error) {
if (error instanceof Error) {
// eslint-disable-next-line no-console
console.warn("Could not initialize Statsig, all feature gates will be disabled.");
}
}


instance = client;

Expand Down