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/dist/main.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
  *
@@ -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
  *
@@ -1154,8 +1154,10 @@
1154
1154
  relative
1155
1155
  }));
1156
1156
 
1157
- // If no action was specified, browsers will persist current search params
1158
- // when determining the path, so match that behavior
1157
+ // Previously we set the default action to ".". The problem with this is that
1158
+ // `useResolvedPath(".")` excludes search params of the resolved URL. This is
1159
+ // the intended behavior of when "." is specifically provided as
1160
+ // the form action, but inconsistent w/ browsers when the action is omitted.
1159
1161
  // https://github.com/remix-run/remix/issues/927
1160
1162
  let location = reactRouter.useLocation();
1161
1163
  if (action == null) {