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 合并指标
 (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.

贡献者指南