Skip to content

Commit

Permalink
Fix missing redirectBack return (sergiodxa#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunyel authored Mar 25, 2023
1 parent 7cbe05a commit db84058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ The response created with this function will have the `Location` header pointing
import { redirectBack } from "remix-utils";

export async function action({ request }: ActionArgs) {
await redirectBack(request, { fallback: "/" });
return redirectBack(request, { fallback: "/" });
}
```

Expand Down

0 comments on commit db84058

Please sign in to comment.