Skip to content

Commit 0b6179b

Browse files
authored
fix(config-cat-web): Fix code examples in README.md (open-feature#1050)
1 parent f992e34 commit 0b6179b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libs/providers/config-cat-web/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@ $ npm install @openfeature/client-sdk configcat-js-ssr
2424

2525
The ConfigCat provider uses the [ConfigCat JavaScript SSR SDK](https://configcat.com/docs/sdk-reference/js-ssr/).
2626

27-
It can be created by passing the ConfigCat SDK options to ```ConfigCatProvider.create```.
27+
It can be created by passing the ConfigCat SDK options to ```ConfigCatWebProvider.create```.
2828
The available options can be found in the [ConfigCat JavaScript SSR SDK](https://configcat.com/docs/sdk-reference/js-ssr/#creating-the-configcat-client).
2929

3030
The ConfigCat Web Provider only supports the `AutoPolling` mode because it caches all evaluation data to support synchronous evaluation of feature flags.
3131

3232
### Example using the default configuration
3333

3434
```javascript
35-
import { ConfigCatProvider } from '@openfeature/config-cat-web-provider';
35+
import { ConfigCatWebProvider } from '@openfeature/config-cat-web-provider';
3636

37-
const provider = ConfigCatProvider.create('<sdk_key>');
37+
const provider = ConfigCatWebProvider.create('<sdk_key>');
3838
OpenFeature.setProvider(provider);
3939
```
4040

4141
### Example using different polling options and a setupHook
4242

4343
```javascript
44-
import { ConfigCatProvider } from '@openfeature/config-cat-web-provider';
44+
import { ConfigCatWebProvider } from '@openfeature/config-cat-web-provider';
4545

46-
const provider = ConfigCatProvider.create('<sdk_key>', {
46+
const provider = ConfigCatWebProvider.create('<sdk_key>', {
4747
setupHooks: (hooks) => hooks.on('clientReady', () => console.log('Client is ready!')),
4848
});
4949

0 commit comments

Comments
 (0)