@octanejs/hook-form 0.1.0 → 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 +3 -3
- package/src/useForm.ts +1 -1
- package/src/useWatch.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/hook-form",
|
|
3
|
-
"version": "0.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.
|
|
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.
|
|
41
|
+
"@octanejs/testing-library": "0.1.2"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"test": "vitest run"
|
package/src/useForm.ts
CHANGED
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
|