@insforge/react 0.5.1 → 0.5.2
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/atoms.cjs +0 -3
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.js +0 -3
- package/dist/atoms.js.map +1 -1
- package/dist/components.cjs +0 -3
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +0 -3
- package/dist/components.js.map +1 -1
- package/dist/forms.cjs +0 -3
- package/dist/forms.cjs.map +1 -1
- package/dist/forms.js +0 -3
- package/dist/forms.js.map +1 -1
- package/dist/hooks.cjs +0 -3
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.js +0 -3
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +0 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -415,9 +415,6 @@ function InsforgeProvider({
|
|
|
415
415
|
function useInsforge() {
|
|
416
416
|
const context = useContext(InsforgeContext);
|
|
417
417
|
if (!context) {
|
|
418
|
-
if (typeof window !== "undefined") {
|
|
419
|
-
throw new Error("useInsforge must be used within InsforgeProvider");
|
|
420
|
-
}
|
|
421
418
|
return {
|
|
422
419
|
user: null,
|
|
423
420
|
isLoaded: false,
|