()
| 1245 | const getOrMakeClient = () => (client ??= clientFor__(m, queryInvalidation, invalidationResources)) |
| 1246 | |
| 1247 | // initialize on first use.. |
| 1248 | const proxy = Struct.keys(m).concat(["helpers"]).reduce((acc, key) => { |
| 1249 | Object.defineProperty(acc, key, { |
| 1250 | configurable: true, |
| 1251 | get() { |
| 1252 | const v = (getOrMakeClient() as any)[key as any] |
| 1253 | // cache on first use. |
| 1254 | Object.defineProperty(acc, key, { value: v }) |
| 1255 | return v |
no test coverage detected