remix-validated-form 5.0.1 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remix-validated-form",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Form component and utils for easy form validation in remix",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -110,7 +110,7 @@ export const useHasActiveFormSubmit = ({
110
110
  let navigation = useNavigation();
111
111
  const hasActiveSubmission = fetcher
112
112
  ? fetcher.state === "submitting"
113
- : navigation.state === "submitting";
113
+ : navigation.state === "submitting" || navigation.state === "loading";
114
114
  return hasActiveSubmission;
115
115
  };
116
116