(
result: Array<QueryObserverResult>,
matches: Array<QueryObserverMatch>,
)
| 193 | } |
| 194 | |
| 195 | #trackResult( |
| 196 | result: Array<QueryObserverResult>, |
| 197 | matches: Array<QueryObserverMatch>, |
| 198 | ) { |
| 199 | return matches.map((match, index) => { |
| 200 | const observerResult = result[index]! |
| 201 | return !match.defaultedQueryOptions.notifyOnChangeProps |
| 202 | ? match.observer.trackResult(observerResult, (accessedProp) => { |
| 203 | // track property on all observers to ensure proper (synchronized) tracking (#7000) |
| 204 | matches.forEach((m) => { |
| 205 | m.observer.trackProp(accessedProp) |
| 206 | }) |
| 207 | }) |
| 208 | : observerResult |
| 209 | }) |
| 210 | } |
| 211 | |
| 212 | #combineResult( |
| 213 | input: Array<QueryObserverResult>, |
no test coverage detected