lyqht/Octokit-lite

[Unfork] Reset repository picker options after submission

開放

#25 建立於 2022年10月4日

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

倉庫指標

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

描述

Description

Currently at Unfork, after deleting repositories, those repositories stay as options.

The RepositoryPicker component should reset options after user has submitted the repositories for deletion.

For TopicSpace, i think it is ok to leave the repositories selected there after users updated the topics as they might wanna add more topics to the same selected topics.

Relevant code

  • unfork/index.tsx -> Probably just need to reset the selectedItems state here.

But there may be unintended UX behaviors caused by downshift component after resetting the state, so please play around with the dropdown after making the changes to ensure that the component still work as intended.

貢獻者指南