Skip to content

Fix ReferenceField does not work offline#11163

Open
fzaninotto wants to merge 1 commit intomasterfrom
fix-reference-field-offline
Open

Fix ReferenceField does not work offline#11163
fzaninotto wants to merge 1 commit intomasterfrom
fix-reference-field-offline

Conversation

@fzaninotto
Copy link
Member

Problem

ReferenceField hides the (stale) data when the network returns an error. This is not the default behavior of TanStack Query, and this means that ReferenceField will always render empty in offline.

Solution

If the query returns data, even in case of error, return it.

## Problem

ReferenceField hides the (stale) data when the network returns an error. This is not the default behavior of TanStack Query, and this means that ReferenceField will always render empty in offline.

## Solution

If the query returns data, even in case of error, return it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Development

Successfully merging this pull request may close these issues.

1 participant