You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the `BucketProvider` context provider to your application.
43
-
This will initialize the Bucket SDK, fetch features and start listening for automated feedback survey events.
42
+
Add the `BucketProvider` context provider to your application:
44
43
45
44
**Example:**
46
45
@@ -139,6 +138,8 @@ generates a `check` event.
139
138
140
139
## `<BucketProvider>` component
141
140
141
+
The `<BucketProvider>` initializes the Bucket SDK, fetch features and start listening for automated feedback survey events. The component can be configured using a number of props:
142
+
142
143
- `publishableKey` is used to connect the provider to an _environment_ on Bucket. Find your `publishableKey` under [environment settings](https://app.bucket.co/envs/current/settings/app-environments) in Bucket,
143
144
- `company`, `user` and `otherContext` make up the _context_ that is used to determine if a feature is enabled or not. `company` and `user` contexts are automatically transmitted to Bucket servers so the Bucket app can show you which companies have access to which features etc.
0 commit comments