Skip to content

ht6#63

Open
levanta wants to merge 1 commit intoromabelka:masterfrom
levanta:ht6
Open

ht6#63
levanta wants to merge 1 commit intoromabelka:masterfrom
levanta:ht6

Conversation

@levanta
Copy link

@levanta levanta commented Jul 25, 2018

No description provided.

comments: '/api/comment'
}

export function loadData(page, limit, url_id) {
Copy link
Owner

Choose a reason for hiding this comment

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

Не лучшая идея из компонентов думать про url

return {
...state,
[page]: {
records: payload.records,
Copy link
Owner

Choose a reason for hiding this comment

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

я бы хранил комменты в comments.entities, по сути это те же сущности, а total - это ко всем записям, а не к странице

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