const getChat = cache(async () => {
return { messages: [{ text: "hi", author: "me" }] };
}, "chat");
export default function Contact() {
const chat = createAsync(() => {
return getChat();
});
if (!chat())
useHead({
tag: "script",
id: "recaptcha",
setting: { close: true },
props: {
src: "https://www.google.com/recaptcha/api.js",
async: true,
defer: true,
},
});
const getChat = cache(async () => {
return { messages: [{ text: "hi", author: "me" }] };
}, "chat");
export default function Contact() {
const chat = createAsync(() => {
return getChat();
});
if (!chat())
useHead({
tag: "script",
id: "recaptcha",
setting: { close: true },
props: {
src: "https://www.google.com/recaptcha/api.js",
async: true,
defer: true,
},
});