Skip to content

Hw6#80

Open
oleg-prikhodko wants to merge 7 commits intoTa4i:masterfrom
oleg-prikhodko:HW6
Open

Hw6#80
oleg-prikhodko wants to merge 7 commits intoTa4i:masterfrom
oleg-prikhodko:HW6

Conversation

@oleg-prikhodko
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@Ta4i Ta4i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Все гуд) Было бы веселее с другим эндпоинтом

super(props)
this.state = {
startPage: 1,
perPage: 3
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Решил по 3 показывать, чтобы больше страниц получилось?)

export function loadAllComments() {
return {
type: LOAD_ALL_COMMENTS,
callAPI: '/api/comment'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вообще это хак) Было бы интереснее реализовать это с апи /api/comment?limit=5&offset=10

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

Successfully merging this pull request may close these issues.

2 participants