diff --git a/.changeset/great-phones-exist.md b/.changeset/great-phones-exist.md new file mode 100644 index 0000000000..39f826e2df --- /dev/null +++ b/.changeset/great-phones-exist.md @@ -0,0 +1,5 @@ +--- +'@builder.io/mitosis': patch +--- + +respect async with anonymous arrow function in state diff --git a/packages/core/src/__tests__/__snapshots__/alpine.test.ts.snap b/packages/core/src/__tests__/__snapshots__/alpine.test.ts.snap index 6789407d19..2f6f8d96c9 100644 --- a/packages/core/src/__tests__/__snapshots__/alpine.test.ts.snap +++ b/packages/core/src/__tests__/__snapshots__/alpine.test.ts.snap @@ -2629,6 +2629,26 @@ exports[`Alpine.js > jsx > Javascript Test > spreadProps 1`] = ` " `; +exports[`Alpine.js > jsx > Javascript Test > store-async-function 1`] = ` +"
+ +" +`; + exports[`Alpine.js > jsx > Javascript Test > string-literal-store 1`] = ` "
+" +`; + exports[`Alpine.js > jsx > Typescript Test > string-literal-store 1`] = ` "
+ +
" +`; + exports[`Svelte > jsx > Javascript Test > string-literal-store 1`] = ` " + +
" +`; + exports[`Svelte > jsx > Typescript Test > string-literal-store 1`] = ` "" +`; + exports[`Vue > jsx > Javascript Test > string-literal-store 1`] = ` "" `; +exports[`Vue > jsx > Typescript Test > store-async-function 1`] = ` +" + +" +`; + exports[`Vue > jsx > Typescript Test > string-literal-store 1`] = ` "