Skip to content

Add offline support to <ReferenceInputBase>, <ReferenceInput> and <AutocompleteInput>#10864

Merged
Madeorsk merged 6 commits intonextfrom
offline-support-reference-input
Aug 26, 2025
Merged

Add offline support to <ReferenceInputBase>, <ReferenceInput> and <AutocompleteInput>#10864
Madeorsk merged 6 commits intonextfrom
offline-support-reference-input

Conversation

@djhi
Copy link
Copy Markdown
Contributor

@djhi djhi commented Jul 29, 2025

Problem

Our components and hooks can't leverage the offline support provided by Tanstack Query.

Solution

  • Make sure our data loading hooks returns the data needed to detect those cases
  • Provide components, hooks and props allowing to handle offline scenarios
  • Provide default offline components in ra-ui-materialui

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.

Comment thread docs/AutocompleteInput.md
Comment thread packages/ra-core/src/controller/input/useReferenceInputController.ts Outdated
@Madeorsk Madeorsk force-pushed the offline-support-reference-one-field branch from 2f737ed to 29c4c07 Compare August 12, 2025 09:22
@Madeorsk Madeorsk force-pushed the offline-support-reference-input branch from 494b79c to d26a330 Compare August 12, 2025 09:26
Base automatically changed from offline-support-reference-one-field to next August 12, 2025 11:44
@djhi djhi added RFR Ready For Review and removed WIP Work In Progress labels Aug 26, 2025
@djhi djhi requested a review from Madeorsk August 26, 2025 08:57
Comment thread docs/AutocompleteArrayInput.md Outdated
Comment thread docs/AutocompleteArrayInput.md Outdated
Comment thread docs/AutocompleteArrayInput.md Outdated
Comment thread packages/ra-core/src/form/choices/useChoicesContext.ts Outdated
Co-authored-by: Madeorsk <matthieu@marmelab.com>
@Madeorsk Madeorsk merged commit bbc9074 into next Aug 26, 2025
15 checks passed
@Madeorsk Madeorsk deleted the offline-support-reference-input branch August 26, 2025 12:04
@Madeorsk Madeorsk added this to the 5.11.0 milestone Aug 26, 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