( query: Query<any, any, any, any>, options: QueryObserverOptions<any, any, any, any, any>, )
| 799 | } |
| 800 | |
| 801 | function isStale( |
| 802 | query: Query<any, any, any, any>, |
| 803 | options: QueryObserverOptions<any, any, any, any, any>, |
| 804 | ): boolean { |
| 805 | return ( |
| 806 | resolveEnabled(options.enabled, query) !== false && |
| 807 | query.isStaleByTime(resolveStaleTime(options.staleTime, query)) |
| 808 | ) |
| 809 | } |
| 810 | |
| 811 | // this function would decide if we will update the observer's 'current' |
| 812 | // properties after an optimistic reading via getOptimisticResult |
no test coverage detected
searching dependent graphs…