remix-hook-form
Advanced tools
@@ -125,3 +125,4 @@ // src/utilities/index.ts | ||
useNavigation, | ||
useSubmit | ||
useSubmit, | ||
useHref | ||
} from "react-router"; | ||
@@ -138,2 +139,3 @@ var useRemixForm = ({ | ||
const [isSubmittedSuccessfully, setIsSubmittedSuccessfully] = useState(false); | ||
const basename = useHref("/"); | ||
const actionSubmit = useSubmit(); | ||
@@ -252,3 +254,3 @@ const actionData = useActionData(); | ||
const action = (_c = e == null ? void 0 : e.currentTarget) == null ? void 0 : _c.action.replace( | ||
window.location.origin, | ||
`${window.location.origin}${basename === "/" ? "" : basename}`, | ||
"" | ||
@@ -255,0 +257,0 @@ ); |
{ | ||
"name": "remix-hook-form", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "Utility wrapper around react-hook-form for use with react-router v7+", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
59570
0.31%19617
45.33%752
0.4%