dolthub / dolthub/dolthub-issues
refresh the database list after accepting a collaboration invitation
Open
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.