@octanejs/hook-form 0.1.1 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/hook-form",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "React Hook Form for the octane renderer — the full react-hook-form 7.81.0 source ported onto octane's hooks: performant, flexible forms with native-event validation (onInput), field arrays, and schema resolvers.",
@@ -27,7 +27,7 @@
27
27
  ".": "./src/index.ts"
28
28
  },
29
29
  "dependencies": {
30
- "octane": "0.1.4"
30
+ "octane": "0.1.5"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.9.1",
@@ -38,7 +38,7 @@
38
38
  "react-hook-form": "7.81.0",
39
39
  "vitest": "^4.1.9",
40
40
  "zod": "^3.25.76",
41
- "@octanejs/testing-library": "0.1.1"
41
+ "@octanejs/testing-library": "0.1.2"
42
42
  },
43
43
  "scripts": {
44
44
  "test": "vitest run"
package/src/useForm.ts CHANGED
@@ -171,7 +171,7 @@ export function useForm<
171
171
  }
172
172
 
173
173
  control._removeUnmounted();
174
- });
174
+ }, null);
175
175
 
176
176
  _formControl.current.formState = useMemo(
177
177
  () => getProxyFormState(formState, control),
package/src/useWatch.ts CHANGED
@@ -329,7 +329,7 @@ export function useWatch<TFieldValues extends FieldValues>(props?: UseWatchProps
329
329
  });
330
330
  }, [control, exact, name, refreshValue]);
331
331
 
332
- useEffect(() => control._removeUnmounted());
332
+ useEffect(() => control._removeUnmounted(), null);
333
333
 
334
334
  // If name or control changed for this render, synchronously reflect the
335
335
  // latest value so callers (like useController) see the correct value