remix-validated-form 5.0.1 → 5.0.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": "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