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

[Doc] Correct an example in useList doc, with page option #9040

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

adguernier
Copy link
Contributor

@adguernier adguernier commented Jun 22, 2023

In the example of useList, with page: 1 in option,

const { total, data } = useList({
    data: [
        { id: 1, name: 'Arnold' },
        { id: 2, name: 'Sylvester' },
        { id: 3, name: 'Jean-Claude' },
    ],
    perPage: 2,
    page: 1,
});

the data result will be

[
    { id: 1, name: 'Arnold' },
    { id: 2, name: 'Sylvester' },
]

and not

[
   { id: 3, name: 'Jean-Claude' },
]

@adguernier adguernier added RFR Ready For Review documentation labels Jun 22, 2023
@djhi djhi merged commit 3ac5926 into master Jun 22, 2023
@djhi djhi deleted the doc-fix-uselist-page-option-example branch June 22, 2023 14:28
@djhi djhi modified the milestones: 4.11.4, 3.19.13 Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants