(res: typeof observerResult)
| 190 | } |
| 191 | |
| 192 | function setStateWithReconciliation(res: typeof observerResult) { |
| 193 | const opts = observer().options |
| 194 | // @ts-expect-error - Reconcile option is not correctly typed internally |
| 195 | const reconcileOptions = opts.reconcile |
| 196 | |
| 197 | setState((store) => { |
| 198 | return reconcileFn( |
| 199 | store, |
| 200 | res, |
| 201 | reconcileOptions === undefined ? false : reconcileOptions, |
| 202 | opts.queryHash, |
| 203 | ) |
| 204 | }) |
| 205 | } |
| 206 | |
| 207 | function createDeepSignal<T>(): Signal<T> { |
| 208 | return [ |
no test coverage detected