@@ -26,7 +26,7 @@ describe('mdx', async () => {
2626
2727 expect ( result ) . toMatchInlineSnapshot ( `
2828 {
29- "code": "import { jsx } from '@builder.io/qwik';
29+ "code": "import { jsx, _jsxC, RenderOnce } from '@builder.io/qwik';
3030 import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from "@builder.io/qwik/jsx-runtime";
3131 export const headings = [{
3232 "text": "Hello",
@@ -60,10 +60,13 @@ describe('mdx', async () => {
6060 })]
6161 });
6262 }
63-
63+
6464 const WrappedMdxContent = () => {
65- const content = _createMdxContent({});
66- return typeof MDXLayout === 'function' ? jsx(MDXLayout, {children: content}) : content;
65+ const content = _jsxC(RenderOnce, {children: _jsxC(_createMdxContent, {}, 3, null)}, 3, "eB2HIyA1");
66+ if (typeof MDXLayout === 'function'){
67+ return jsx(MDXLayout, {children: content});
68+ }
69+ return content;
6770 };
6871 export default WrappedMdxContent;
6972 ",
@@ -95,7 +98,7 @@ export default function Layout({ children: content }) {
9598
9699 expect ( result ) . toMatchInlineSnapshot ( `
97100 {
98- "code": "import { jsx } from '@builder.io/qwik';
101+ "code": "import { jsx, _jsxC, RenderOnce } from '@builder.io/qwik';
99102 import {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from "@builder.io/qwik/jsx-runtime";
100103 export const headings = [{
101104 "text": "Hello",
@@ -134,10 +137,13 @@ export default function Layout({ children: content }) {
134137 })]
135138 });
136139 }
137-
140+
138141 const WrappedMdxContent = () => {
139- const content = _createMdxContent({});
140- return typeof MDXLayout === 'function' ? jsx(MDXLayout, {children: content}) : content;
142+ const content = _jsxC(RenderOnce, {children: _jsxC(_createMdxContent, {}, 3, null)}, 3, "UdQmQWC3");
143+ if (typeof MDXLayout === 'function'){
144+ return jsx(MDXLayout, {children: content});
145+ }
146+ return content;
141147 };
142148 export default WrappedMdxContent;
143149 ",
0 commit comments