lyqht/Octokit-lite

Add Error Boundary for handling request errors

開放

#10 建立於 2022年9月30日

 (13 則留言) (0 個反應) (0 位負責人)TypeScript (11 個分叉)auto 404
good first issue

倉庫指標

星標
 (17 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Description

In both Unfork and TopicSpace, there is no error handling of showing error notification/popup in the case when the network request to API routes fails e.g. in the case of bulk repository delete (#3) or other edge cases.

Suggested Solution

Add a React error boundary to catch all network errors and display it as a simple error popup ui at the right top edge of the app.

貢獻者指南