@screeb/sdk-react 0.1.4 → 0.1.5
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/dist/es/index.js +2 -2
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -328,8 +328,8 @@ var ScreebProvider = function (_a) {
|
|
|
328
328
|
var useScreebContext = function () {
|
|
329
329
|
var context = React.useContext(ScreebContext);
|
|
330
330
|
if (context === undefined) {
|
|
331
|
-
// eslint-disable-next-line
|
|
332
|
-
|
|
331
|
+
// eslint-disable-next-line no-console
|
|
332
|
+
console.warn("`useScreeb` must be used within `ScreebProvider`.");
|
|
333
333
|
}
|
|
334
334
|
return context;
|
|
335
335
|
};
|