@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/forms.js
CHANGED
|
@@ -624,9 +624,6 @@ var InsforgeContext = createContext(void 0);
|
|
|
624
624
|
function useInsforge() {
|
|
625
625
|
const context = useContext(InsforgeContext);
|
|
626
626
|
if (!context) {
|
|
627
|
-
if (typeof window !== "undefined") {
|
|
628
|
-
throw new Error("useInsforge must be used within InsforgeProvider");
|
|
629
|
-
}
|
|
630
627
|
return {
|
|
631
628
|
user: null,
|
|
632
629
|
isLoaded: false,
|