Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add starred section for UserPage #142

Open
azinit opened this issue Nov 26, 2020 · 1 comment
Open

Add starred section for UserPage #142

azinit opened this issue Nov 26, 2020 · 1 comment
Labels
enhancement New feature or request
Projects
Milestone

Comments

@azinit
Copy link
Member

azinit commented Nov 26, 2020

image

@azinit azinit added the enhancement New feature or request label Nov 26, 2020
@azinit azinit added this to the Backlog milestone Nov 26, 2020
@azinit azinit added this to Needs triage in Backlog via automation Nov 26, 2020
@azinit
Copy link
Member Author

azinit commented Nov 26, 2020

@niyazm524 если успеешь к концу недели - оставь напоследок

Я бы еще один запрос написал, и потом примерно как-то так реализовал

const useUserRepositories = () => {
    const config = useFilters(); // реализация в файле есть уже
    const queryBase = useReposQuery():
    const queryStarred = useStarredQuery();
    return config.isStarred ? queryStarred : queryBase;
}
...
const RepoList = () => {
    const { data, loading } = useUserRepositories();
}

Может и попроще как-то найдешь способ, но там вродь отдельным запросом это нужно делать(

Пагинация в принципе тоже автоматчиески подтянется, если просто скопируешь запрос как у меня для остальных вкладок

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Backlog
  
Needs triage
Development

No branches or pull requests

2 participants