We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9db9e3 commit 69f1ed8Copy full SHA for 69f1ed8
packages/svelte/src/compiler/phases/3-transform/client/utils.js
@@ -291,6 +291,9 @@ export function should_proxy(node, scope) {
291
* @param {ComponentClientTransformState} state
292
* @param {Expression} arg
293
*/
294
-export function create_derived(state, arg) {
295
- return b.call(state.analysis.runes ? '$.derived' : '$.derived_safe_equal', arg);
+export function create_derived(state, arg, async = false) {
+ return b.call(
296
+ state.analysis.runes ? `$.${async ? 'async_' : ''}derived` : '$.derived_safe_equal',
297
+ arg
298
+ );
299
}
0 commit comments