(args: unknown)
| 1158 | return class extends QueryService { |
| 1159 | static readonly [InfiniteTypeId]: any = InfiniteTypeId |
| 1160 | static loadMore(args: unknown) { |
| 1161 | return withCache((cache, context) => |
| 1162 | Effect.callback<any, any>((resume) => { |
| 1163 | const cancel = cache.loadMore( |
| 1164 | def, |
| 1165 | args, |
| 1166 | fetcherOf(context, QueryService), |
| 1167 | resume |
| 1168 | ) |
| 1169 | return Effect.sync(cancel) |
| 1170 | }) |
| 1171 | ) |
| 1172 | } |
| 1173 | static reset(args: unknown) { |
| 1174 | return withCache((cache) => Effect.sync(() => cache.reset(def, args))) |
| 1175 | } |