Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions client/javascript-mono/UsingEvaluationsDataAdapter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ const client = new StatsigClient('client-key', { userID: 'user-123' });

// Bootstrap with data from server
const bootstrapData = /* data from server or local file */;
await client.dataAdapter.setData(bootstrapData);
client.dataAdapter.setData(bootstrapData);

await client.initializeSync();
client.initializeSync();
```

[View full example on GitHub](https://github.com/statsig-io/js-client-monorepo/blob/main/samples/react/src/samples/precomputed-client/sample-precomp-bootstrap.tsx)
Expand Down
4 changes: 2 additions & 2 deletions client/javascript-mono/UsingSpecsDataAdapter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ const client = new StatsigOnDeviceEvalClient('client-key');

// Bootstrap with specs data from local file or bundle
const specsData = /* data from local file */;
await client.dataAdapter.setData(specsData);
client.dataAdapter.setData(specsData);

await client.initializeAsync();
client.initializeSync();
```

[View full example on GitHub](https://github.com/statsig-io/js-client-monorepo/blob/main/samples/react/src/samples/on-device-eval-client/sample-on-device-bootstrap.tsx)
Expand Down