Skip to content

Commit

Permalink
Merge pull request #80 from upstash/DX-944
Browse files Browse the repository at this point in the history
Call toast with error message on fetch error
  • Loading branch information
CahidArda authored Jun 10, 2024
2 parents 6cf5d99 + c9487ee commit 20bf18c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-feet-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@upstash/react-databrowser": patch
---

Log all fetch errors to console
3 changes: 1 addition & 2 deletions packages/react-databrowser/src/lib/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ export const queryClient = new QueryClient({
title: "Error",
description: desc,
});

console.error(error);
}
console.error(error);
},
}),
});

0 comments on commit 20bf18c

Please sign in to comment.