Commit 32ca064
committed
Fix ReferenceField does not work offline
## 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.1 parent d761b1a commit 32ca064
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments