@openfeature/react-sdk 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
<img alt="Specification" src="https://img.shields.io/static/v1?label=specification&message=v0.8.0&color=yellow&style=for-the-badge" />
|
|
17
17
|
</a>
|
|
18
18
|
<!-- x-release-please-start-version -->
|
|
19
|
-
<a href="https://github.com/open-feature/js-sdk/releases/tag/react-sdk-v0.4.
|
|
20
|
-
<img alt="Release" src="https://img.shields.io/static/v1?label=release&message=v0.4.
|
|
19
|
+
<a href="https://github.com/open-feature/js-sdk/releases/tag/react-sdk-v0.4.4">
|
|
20
|
+
<img alt="Release" src="https://img.shields.io/static/v1?label=release&message=v0.4.4&color=blue&style=for-the-badge" />
|
|
21
21
|
</a>
|
|
22
22
|
<!-- x-release-please-end -->
|
|
23
23
|
<br/>
|
|
@@ -190,7 +190,7 @@ This is analogous to:
|
|
|
190
190
|
OpenFeature.getClient('my-domain');
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
-
For more information about `domains`, refer to the [web SDK](https://github.com/open-feature/js-sdk/blob/main/packages/
|
|
193
|
+
For more information about `domains`, refer to the [web SDK](https://github.com/open-feature/js-sdk/blob/main/packages/web/README.md).
|
|
194
194
|
|
|
195
195
|
#### Re-rendering with Context Changes
|
|
196
196
|
|
|
@@ -285,9 +285,7 @@ The React SDK includes a built-in context provider for testing.
|
|
|
285
285
|
This allows you to easily test components that use evaluation hooks, such as `useFlag`.
|
|
286
286
|
If you try to test a component (in this case, `MyComponent`) which uses an evaluation hook, you might see an error message like:
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
No OpenFeature client available - components using OpenFeature must be wrapped with an <OpenFeatureProvider>.
|
|
290
|
-
```
|
|
288
|
+
> No OpenFeature client available - components using OpenFeature must be wrapped with an `<OpenFeatureProvider>`.
|
|
291
289
|
|
|
292
290
|
You can resolve this by simply wrapping your component under test in the OpenFeatureTestProvider:
|
|
293
291
|
|