Async function for `useAsyncData` key param
Hello, I have a composable that returns
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
Can anyone think of a clean way to do this?
useAsyncData and want to do something like thisIn 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
useAsyncData's type signature:Can anyone think of a clean way to do this?