Skip to content

Commit

Permalink
fix(remix-react): Remove nullish coalescing operator (#4561)
Browse files Browse the repository at this point in the history
  • Loading branch information
machour committed Nov 10, 2022
1 parent f624322 commit 02f8fa0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curvy-countries-boil.md
@@ -0,0 +1,5 @@
---
"@remix-run/react": patch
---

Fixed old browsers compatibility by removing a nullish coalescing operator
2 changes: 1 addition & 1 deletion packages/remix-react/components.tsx
Expand Up @@ -1039,7 +1039,7 @@ export function useFormAction(
method: FormMethod = "get"
): string {
let { id } = useRemixRouteContext();
let resolvedPath = useResolvedPath(action ?? ".");
let resolvedPath = useResolvedPath(action ? action : ".");

// Previously we set the default action to ".". The problem with this is that
// `useResolvedPath(".")` excludes search params and the hash of the resolved
Expand Down

0 comments on commit 02f8fa0

Please sign in to comment.