Skip to content

Commit

Permalink
docsL cleanup 'Handling error' sample code in data-loading.md (#3073)
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Cassiere <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 29, 2024
1 parent 61feda7 commit 07e5f93
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/framework/react/guide/data-loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,6 @@ The `reset` function can be used to allow the user to retry rendering the error
export const Route = createFileRoute('/posts')({
loader: () => fetchPosts(),
errorComponent: ({ error, reset }) => {
const router = useRouter()

return (
<div>
{error.message}
Expand Down

0 comments on commit 07e5f93

Please sign in to comment.