import { h, defineComponent } from 'vue'; /** * Astro passes `children` as a string of HTML, so we need * a wrapper `div` to render that content as VNodes. * * This is the Vue + JSX equivalent of using `
` */ const StaticHtml = defineComponent({ props: { value: String, name: String, }, setup({ name, value }) { if (!value) return () => null; return () => h('astro-slot', { name, innerHTML: value }); }, }); /** * Other frameworks have `shouldComponentUpdate` in order to signal * that this subtree is entirely static and will not be updated * * Fortunately, Vue is smart enough to figure that out without any * help from us, so this just works out of the box! */ export default StaticHtml; >add-license Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-04-01Make `FetchHeaders` workjarred/fetchheadersGravatar Jarred Sumner 1-1/+0
2022-04-01[bun.js] Expose `ErrorEvent`Gravatar Jarred Sumner 2-37/+52
2022-04-01[bun.js] Use `Headers` from WebKit instead of customGravatar Jarred Sumner 44-843/+5918
2022-03-31Update WebKitGravatar Jarred Sumner 1-0/+0
2022-03-31Delete unusedGravatar Jarred Sumner 1-5/+0
2022-03-31Allow a little leeway when HMRGravatar Jarred Sumner 1-1/+2
2022-03-31Fix more infinite loopsGravatar Jarred Sumner 1-2/+2
2022-03-31Bugfixes to how we build WebCore codeGravatar Jarred Sumner 29-170/+384
2022-03-31[bun dev] Re-create the shared buffer for each websocketGravatar Jarred Sumner 1-6/+5
2022-03-31[bun dev] Improve HMR reliability when filesystem is slow or reading large filesGravatar Jarred Sumner 2-19/+68
2022-03-31Fix possible infinite loopsGravatar Jarred Sumner 1-3/+3
2022-03-30Update bindings.cppGravatar Jarred Sumner 1-0/+24
2022-03-30[bun.js] Support `file://` URLs in node fsGravatar Jarred Sumner 9-6/+102
2022-03-30Bump target next version to 12.1.3Gravatar Jarred Sumner 1-1/+1
2022-03-30Add test for Bun.hash that runs it with a Uint8ArrayGravatar Jarred Sumner 1-8/+16