How can I use data from useLazyAsyncData with useHead/useSeoMeta? The issue is that data.value from useLazyAsyncData is null when my code for useHead/useSeoMeta is executed. My code for the head is complicated and seperated in several files, so the following code will not work for me.
const { pending, data: pokemon } = await useLazyAsyncData('pokemon', () =
$fetch(`${API_BASE_URL}/pokemon/${route.params.id}`)
);
useSeoMeta({
title: () => pokemon.value?.name,
description: () => `${pokemon.value?.name} description`,
});
Is there another way to use data from useLazyAsyncData? How can I make my code wait until the data is not null?