@bucketco/react-sdk
Advanced tools
Comparing version
{ | ||
"name": "@bucketco/react-sdk", | ||
"version": "3.0.0-alpha.9", | ||
"version": "3.0.0", | ||
"license": "MIT", | ||
@@ -69,3 +69,3 @@ "repository": { | ||
}, | ||
"gitHead": "7954a7980ec00fda38a91c1efa891b71e4c2fb38" | ||
"gitHead": "16e1f35cca845272bcd222db3bdf4644ff19d96a" | ||
} |
@@ -116,3 +116,3 @@ # Bucket React SDK | ||
In addition to toggling features on/off, Bucket supports remote configuration of features through Remote config. | ||
Remote config is a dynamic and flexible approach to configuring feature behavior outside of your app – without needing to re-deploy it. | ||
@@ -153,6 +153,3 @@ Similar to `isEnabled`, each feature accessed using the `useFeature()` hook, has a `config` property. This configuration is managed from within Bucket. It is managed similar to the way access to features is managed, but instead of the | ||
The `key` is always present while the `payload` is a optional JSON value for arbitrary configuration needs. | ||
If a feature has no configuration or no configuration value was matched against the context, the config object will be empty. | ||
Thus, `key` will be `undefined`. Make sure to check against this case when trying to use the | ||
configuration in your application. | ||
`key` is mandatory for a config, but if a feature has no config or no config value was matched against the context, the `key` will be `undefined`. Make sure to check against this case when trying to use the configuration in your application. `payload` is an optional JSON value for arbitrary configuration needs. | ||
@@ -159,0 +156,0 @@ Note that, similar to `isEnabled`, accessing `config` on the object returned by `useFeature()` automatically |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3
-25%887044
0430
-0.69%