dolthub / dolthub/dolthub-issues

refresh the database list after accepting a collaboration invitation

Open
#536 0 comments 0 reactions 1 assignee Claimed by @liuliu-dev View on GitHub
bug
Dominant language
No language data
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

currently after the invitation is accepted, the user database list won't change until refreshing the page.

we have this useEffect in hooks like useUserRepoList, useOwnerRepoList, and when repoList.list.length !== 0 it won't reset the repoList even data has changed
```ts
useEffect(() => {
if (data && repoList.list.length === 0) {
setRepoList(data.userRepos);
setLoad(false);
}
}, [data, repoList.list.length]);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.