react-router-dom-v5-compat 6.20.0 → 6.20.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # `react-router-dom-v5-compat`
2
2
 
3
+ ## 6.20.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - `react-router-dom@6.20.1`
9
+ - `react-router@6.20.1`
10
+
3
11
  ## 6.20.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router DOM v5 Compat v6.20.0
2
+ * React Router DOM v5 Compat v6.20.1
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1072,8 +1072,10 @@ function useFormAction(action, _temp2) {
1072
1072
  let path = _extends({}, useResolvedPath(action ? action : ".", {
1073
1073
  relative
1074
1074
  }));
1075
- // If no action was specified, browsers will persist current search params
1076
- // when determining the path, so match that behavior
1075
+ // Previously we set the default action to ".". The problem with this is that
1076
+ // `useResolvedPath(".")` excludes search params of the resolved URL. This is
1077
+ // the intended behavior of when "." is specifically provided as
1078
+ // the form action, but inconsistent w/ browsers when the action is omitted.
1077
1079
  // https://github.com/remix-run/remix/issues/927
1078
1080
  let location = useLocation();
1079
1081
  if (action == null) {