export const useSomeHook = () => { return useAsyncData( () => $fetch('some-endpoint-that-fetches-keys'), async () => { // do some fetch here } )}
export const useSomeHook = () => { return useAsyncData( () => $fetch('some-endpoint-that-fetches-keys'), async () => { // do some fetch here } )}
In other words, I want to set the key to some value fetched async, but if I make the composable async, the return type will always need to be a promise, which is not equivilent to