Skip to content

Introduce emptyWhileLoading on <ListBase>#10917

Merged
Madeorsk merged 7 commits intonextfrom
list-base-empty-while-loading
Sep 4, 2025
Merged

Introduce emptyWhileLoading on <ListBase>#10917
Madeorsk merged 7 commits intonextfrom
list-base-empty-while-loading

Conversation

@djhi
Copy link
Copy Markdown
Contributor

@djhi djhi commented Sep 3, 2025

Problem

When using iterator like components as direct children of ListBase, they have to check the isPending state.

Solution

  • Introduce emptyWhileLoading on <ListBase> so they don't have to.
  • Also fix offine tests impacting other tests

How To Test

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The PR includes unit tests (if not possible, describe why)
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@djhi djhi added RFR Ready For Review WIP Work In Progress and removed RFR Ready For Review labels Sep 3, 2025
Comment thread packages/ra-core/src/controller/list/ListBase.spec.tsx
Comment thread packages/ra-core/src/controller/list/ListBase.spec.tsx
Comment thread docs/ListBase.md Outdated
Co-authored-by: Madeorsk <matthieu@marmelab.com>
@Madeorsk Madeorsk merged commit 7df8d6a into next Sep 4, 2025
15 checks passed
@Madeorsk Madeorsk deleted the list-base-empty-while-loading branch September 4, 2025 10:26
@Madeorsk Madeorsk added this to the 5.12.0 milestone Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants