-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Introduce ReferenceInputBase Components #9672
Conversation
393ad9d
to
ccea8b8
Compare
packages/ra-core/src/controller/input/ReferenceInputBase.spec.tsx
Outdated
Show resolved
Hide resolved
packages/ra-core/src/controller/input/ReferenceInputBase.stories.tsx
Outdated
Show resolved
Hide resolved
export interface ReferenceInputBaseProps | ||
extends InputProps, | ||
UseReferenceInputControllerParams { | ||
children: ReactNode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd make it optional, to avoid overriding the interface in the ReferenceInput component
packages/ra-core/src/controller/input/ReferenceInputBase.stories.tsx
Outdated
Show resolved
Hide resolved
packages/ra-core/src/controller/input/ReferenceInputBase.spec.tsx
Outdated
Show resolved
Hide resolved
extends Omit<ReferenceInputBaseProps, 'children'> { | ||
children?: ReactNode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer necessary as you edited the RefrenceInputBaseProps type
Problem
While working on the alternative UI libraries demos, we had to re-implement all the reference fields and inputs logic.
Solution
Add core headless versions for these components
This PR introduces only the
ReferenceInputBase
.