diff --git a/.changeset/eleven-rabbits-cross.md b/.changeset/eleven-rabbits-cross.md deleted file mode 100644 index 9baa1fde14f..00000000000 --- a/.changeset/eleven-rabbits-cross.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -'@builder.io/qwik': minor ---- - -Async functions in `useComputed` are deprecated. - -**Why?** - -- Qwik can't track used signals after the first await, which leads to subtle bugs. -- When calculating the first time, it will see it's a promise and it will restart the render function. -- Both `useTask` and `useResource` are available, without these problems. - -In v2, async functions won't work. - -Again, to get the same functionality use `useTask` or `useResource` instead, or this function: - -```tsx -export const useAsyncComputed$ = (qrlFn: QRL<() => Promise>) => { - const sig = useSignal(); - useTask(({ track }) => { - const result = track(qrlFn); - if (result && 'then' in result) { - result.then( - (val) => (sig.value = val), - (err) => { - console.error('async computed function threw!', err); - throw error; - } - ); - } else { - sig.value = result; - } - }); - return sig; -}; -``` diff --git a/.changeset/friendly-flowers-run.md b/.changeset/friendly-flowers-run.md deleted file mode 100644 index 27de764af96..00000000000 --- a/.changeset/friendly-flowers-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@builder.io/qwik': patch ---- - -docs: fix useResource docs example & remove unused demo diff --git a/.changeset/funny-wasps-do.md b/.changeset/funny-wasps-do.md deleted file mode 100644 index 638547bcb7b..00000000000 --- a/.changeset/funny-wasps-do.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@builder.io/qwik': patch ---- - -FIX: QRL segment filenames are no longer lowercased. This was giving trouble with parent lookups in dev mode and there was no good reason for it. diff --git a/.changeset/gentle-adults-compare.md b/.changeset/gentle-adults-compare.md deleted file mode 100644 index 3748cec64ac..00000000000 --- a/.changeset/gentle-adults-compare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@builder.io/qwik': patch ---- - -FIX: the type for `