Skip to content

Add ArrayFieldBase component#11191

Merged
fzaninotto merged 3 commits into
masterfrom
array-field-base
Mar 17, 2026
Merged

Add ArrayFieldBase component#11191
fzaninotto merged 3 commits into
masterfrom
array-field-base

Conversation

@WiXSL

@WiXSL WiXSL commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The documentation is up to date


ArrayFieldImpl.displayName = 'ArrayFieldImpl';

export const ArrayField = genericMemo(ArrayFieldImpl);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

arrayfieldbase already uses useGenericMemo - you're wrapping it twice!

I think you only need to alias the base component

export const ArrayField = ArrayFieldBase

@fzaninotto fzaninotto changed the title Introduce ArrayFieldBase in ra-core Add ArrayFieldBase component Mar 16, 2026
@fzaninotto fzaninotto merged commit 297599d into master Mar 17, 2026
15 checks passed
@fzaninotto fzaninotto deleted the array-field-base branch March 17, 2026 12:57
@fzaninotto fzaninotto added this to the 5.14.5 milestone Mar 17, 2026
@slax57

slax57 commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

Question: why was that merged on master and not on next?

Also, aren't we missing the headless documentation?

@rvanlaak

rvanlaak commented Apr 1, 2026

Copy link
Copy Markdown

Nice, a new component on a patch version. Thanks, will try it right away!

@fzaninotto

Copy link
Copy Markdown
Member

Sometimes we fail at enforcing our own rules because we're humans. But we all prefer that to being replaced by bots.

@dolfinus

dolfinus commented Apr 6, 2026

Copy link
Copy Markdown

Small issue related to this component: #11232

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.

6 participants