We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f04a8 commit b0150edCopy full SHA for b0150ed
src/useForm.ts
@@ -139,7 +139,7 @@ export class FormStore {
139
private timeoutId: number = null;
140
141
private warningUnhooked = () => {
142
- if (process.env.NODE_ENV !== 'production' && !this.timeoutId) {
+ if (process.env.NODE_ENV !== 'production' && !this.timeoutId && typeof window !== 'undefined') {
143
this.timeoutId = window.setTimeout(() => {
144
this.timeoutId = null;
145
0 commit comments