|
220 | 220 | "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/shared/qrl/qrl.public.ts",
|
221 | 221 | "mdFile": "core._.md"
|
222 | 222 | },
|
| 223 | + { |
| 224 | + "name": "AsyncComputedFn", |
| 225 | + "id": "asynccomputedfn", |
| 226 | + "hierarchy": [ |
| 227 | + { |
| 228 | + "name": "AsyncComputedFn", |
| 229 | + "id": "asynccomputedfn" |
| 230 | + } |
| 231 | + ], |
| 232 | + "kind": "TypeAlias", |
| 233 | + "content": "```typescript\nexport type AsyncComputedFn<T> = (ctx: AsyncComputedCtx) => Promise<T>;\n```", |
| 234 | + "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-async-computed.ts", |
| 235 | + "mdFile": "core.asynccomputedfn.md" |
| 236 | + }, |
| 237 | + { |
| 238 | + "name": "AsyncComputedReadonlySignal", |
| 239 | + "id": "asynccomputedreadonlysignal", |
| 240 | + "hierarchy": [ |
| 241 | + { |
| 242 | + "name": "AsyncComputedReadonlySignal", |
| 243 | + "id": "asynccomputedreadonlysignal" |
| 244 | + } |
| 245 | + ], |
| 246 | + "kind": "Interface", |
| 247 | + "content": "```typescript\nexport interface AsyncComputedReadonlySignal<T = unknown> extends ReadonlySignal<T> \n```\n**Extends:** [ReadonlySignal](#readonlysignal)<!-- --><T>", |
| 248 | + "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/reactive-primitives/signal.public.ts", |
| 249 | + "mdFile": "core.asynccomputedreadonlysignal.md" |
| 250 | + }, |
| 251 | + { |
| 252 | + "name": "AsyncComputedReturnType", |
| 253 | + "id": "asynccomputedreturntype", |
| 254 | + "hierarchy": [ |
| 255 | + { |
| 256 | + "name": "AsyncComputedReturnType", |
| 257 | + "id": "asynccomputedreturntype" |
| 258 | + } |
| 259 | + ], |
| 260 | + "kind": "TypeAlias", |
| 261 | + "content": "```typescript\nexport type AsyncComputedReturnType<T> = T extends Promise<infer T> ? AsyncComputedReadonlySignal<T> : AsyncComputedReadonlySignal<T>;\n```\n**References:** [AsyncComputedReadonlySignal](#asynccomputedreadonlysignal)", |
| 262 | + "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-async-computed.ts", |
| 263 | + "mdFile": "core.asynccomputedreturntype.md" |
| 264 | + }, |
223 | 265 | {
|
224 | 266 | "name": "cache",
|
225 | 267 | "id": "resourcectx-cache",
|
|
324 | 366 | "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-computed.ts",
|
325 | 367 | "mdFile": "core.computedfn.md"
|
326 | 368 | },
|
| 369 | + { |
| 370 | + "name": "ComputedReturnType", |
| 371 | + "id": "computedreturntype", |
| 372 | + "hierarchy": [ |
| 373 | + { |
| 374 | + "name": "ComputedReturnType", |
| 375 | + "id": "computedreturntype" |
| 376 | + } |
| 377 | + ], |
| 378 | + "kind": "TypeAlias", |
| 379 | + "content": "```typescript\nexport type ComputedReturnType<T> = T extends Promise<any> ? never : ReadonlySignal<T>;\n```\n**References:** [ReadonlySignal](#readonlysignal)", |
| 380 | + "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-computed.ts", |
| 381 | + "mdFile": "core.computedreturntype.md" |
| 382 | + }, |
327 | 383 | {
|
328 | 384 | "name": "ComputedSignal",
|
329 | 385 | "id": "computedsignal",
|
|
2060 | 2116 | }
|
2061 | 2117 | ],
|
2062 | 2118 | "kind": "Interface",
|
2063 |
| - "content": "```typescript\nexport interface TaskCtx \n```\n\n\n<table><thead><tr><th>\n\nProperty\n\n\n</th><th>\n\nModifiers\n\n\n</th><th>\n\nType\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\n[track](#)\n\n\n</td><td>\n\n\n</td><td>\n\n[Tracker](#tracker)\n\n\n</td><td>\n\n\n</td></tr>\n</tbody></table>\n\n\n<table><thead><tr><th>\n\nMethod\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\n[cleanup(callback)](#)\n\n\n</td><td>\n\n\n</td></tr>\n</tbody></table>", |
| 2119 | + "content": "```typescript\nexport interface TaskCtx \n```\n\n\n<table><thead><tr><th>\n\nProperty\n\n\n</th><th>\n\nModifiers\n\n\n</th><th>\n\nType\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\n[cleanup](#)\n\n\n</td><td>\n\n\n</td><td>\n\n(callback: () => void) => void\n\n\n</td><td>\n\n\n</td></tr>\n<tr><td>\n\n[track](#)\n\n\n</td><td>\n\n\n</td><td>\n\n[Tracker](#tracker)\n\n\n</td><td>\n\n\n</td></tr>\n</tbody></table>", |
2064 | 2120 | "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-task.ts",
|
2065 | 2121 | "mdFile": "core.taskctx.md"
|
2066 | 2122 | },
|
|
2120 | 2176 | "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/reactive-primitives/impl/store.ts",
|
2121 | 2177 | "mdFile": "core.unwrapstore.md"
|
2122 | 2178 | },
|
| 2179 | + { |
| 2180 | + "name": "useAsyncComputed$", |
| 2181 | + "id": "useasynccomputed_", |
| 2182 | + "hierarchy": [ |
| 2183 | + { |
| 2184 | + "name": "useAsyncComputed$", |
| 2185 | + "id": "useasynccomputed_" |
| 2186 | + } |
| 2187 | + ], |
| 2188 | + "kind": "Function", |
| 2189 | + "content": "Creates a computed signal which is calculated from the given function. A computed signal is a signal which is calculated from other signals. When the signals change, the computed signal is recalculated, and if the result changed, all tasks which are tracking the signal will be re-run and all components that read the signal will be re-rendered.\n\nThe function must be synchronous and must not have any side effects.\n\n\n```typescript\nuseAsyncComputed$: <T>(qrl: AsyncComputedFn<T>) => AsyncComputedReturnType<T>\n```\n\n\n<table><thead><tr><th>\n\nParameter\n\n\n</th><th>\n\nType\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\nqrl\n\n\n</td><td>\n\n[AsyncComputedFn](#asynccomputedfn)<!-- --><T>\n\n\n</td><td>\n\n\n</td></tr>\n</tbody></table>\n**Returns:**\n\n[AsyncComputedReturnType](#asynccomputedreturntype)<!-- --><T>", |
| 2190 | + "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-async-computed.ts", |
| 2191 | + "mdFile": "core.useasynccomputed_.md" |
| 2192 | + }, |
2123 | 2193 | {
|
2124 | 2194 | "name": "useComputed$",
|
2125 | 2195 | "id": "usecomputed_",
|
|
2130 | 2200 | }
|
2131 | 2201 | ],
|
2132 | 2202 | "kind": "Function",
|
2133 |
| - "content": "Creates a computed signal which is calculated from the given function. A computed signal is a signal which is calculated from other signals. When the signals change, the computed signal is recalculated, and if the result changed, all tasks which are tracking the signal will be re-run and all components that read the signal will be re-rendered.\n\nThe function must be synchronous and must not have any side effects.\n\n\n```typescript\nuseComputed$: <T>(qrl: ComputedFn<T>) => T extends Promise<any> ? never : ReadonlySignal<T>\n```\n\n\n<table><thead><tr><th>\n\nParameter\n\n\n</th><th>\n\nType\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\nqrl\n\n\n</td><td>\n\n[ComputedFn](#computedfn)<!-- --><T>\n\n\n</td><td>\n\n\n</td></tr>\n</tbody></table>\n**Returns:**\n\nT extends Promise<any> ? never : [ReadonlySignal](#readonlysignal)<!-- --><T>", |
| 2203 | + "content": "Creates a computed signal which is calculated from the given function. A computed signal is a signal which is calculated from other signals. When the signals change, the computed signal is recalculated, and if the result changed, all tasks which are tracking the signal will be re-run and all components that read the signal will be re-rendered.\n\nThe function must be synchronous and must not have any side effects.\n\n\n```typescript\nuseComputed$: <T>(qrl: ComputedFn<T>) => ComputedReturnType<T>\n```\n\n\n<table><thead><tr><th>\n\nParameter\n\n\n</th><th>\n\nType\n\n\n</th><th>\n\nDescription\n\n\n</th></tr></thead>\n<tbody><tr><td>\n\nqrl\n\n\n</td><td>\n\n[ComputedFn](#computedfn)<!-- --><T>\n\n\n</td><td>\n\n\n</td></tr>\n</tbody></table>\n**Returns:**\n\n[ComputedReturnType](#computedreturntype)<!-- --><T>", |
2134 | 2204 | "editUrl": "https://github.com/QwikDev/qwik/tree/main/packages/qwik/src/core/use/use-computed.ts",
|
2135 | 2205 | "mdFile": "core.usecomputed_.md"
|
2136 | 2206 | },
|
|
0 commit comments