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

Неправильно отрабатывает запрос /title/updates #49

Open
skawfade opened this issue Aug 25, 2024 · 2 comments

Comments

@skawfade
Copy link

Основная проблема в том, как приходят аниме, когда лимит стоит больше 5. Они повторяются в списке. И поэтому пагинация не работает корректно.

Шаги для реализации

  1. Отправить запрос - await fetch('https://api.anilibria.tv/v3/title/updates?limit=15&page=1')
  2. Отправить запрос на page=2 - await fetch('https://api.anilibria.tv/v3/title/updates?limit=15&page=2')
  3. В page 2 запросе аниме будут из первого запроса.

Помогите

@sedm1
Copy link

sedm1 commented Aug 30, 2024

При лимите в 15 все отрабатывает нормально. https://anisee.netlify.app/anime?page=1, как пример

@DavidAsadyan
Copy link

При лимите в 15 все отрабатывает нормально. https://anisee.netlify.app/anime?page=1, как пример

А почему у меня запрос /title/updates выдает только 41 страницу?

useEffect(() => {

    $api
    .get<AnimeList>('/title/updates',{
        params: {
            playlist_type:'array',
            page: activePage,
            limit: 6,
        }
    }).then(response => {
        setTitles(response.data.list);
        setPagination(response.data.pagination);
        setLoading(false);
    });
},[activePage]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants