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 ability to create independent store configurations for different lists of same resource #8042

Closed
wants to merge 61 commits into from

Conversation

antoinefricker
Copy link
Contributor

@antoinefricker antoinefricker commented Aug 5, 2022

Fix #8038

  • Add customStoreKey to useListController and useListParams
  • Unit tests
  • Documentation

@antoinefricker antoinefricker added the WIP Work In Progress label Aug 5, 2022
docs/useListController.md Outdated Show resolved Hide resolved
docs/useListController.md Show resolved Hide resolved
## `customStoreKey`

To display multiple lists of the same resource and keep distinct store states for each of them (filters, pagination, selection), specify unique keys with the `customStoreKey` property.

Copy link
Member

Choose a reason for hiding this comment

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

there, you're missing an example.

packages/ra-core/src/controller/list/useListParams.ts Outdated Show resolved Hide resolved
[skip ci]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work In Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants