Composables that depend on eachother
I have two composables that both use "useAsyncData" to fetch some firebase data. The first fetches an episode and the second fetches all episodes with similar tags to that episode.
However when I run my code the episode is undefined when passed as an argument to the useSimilarEpisodes composable.
I have tried adding an await to the first composable but this blocks navigation, and if I do useLazyAsyncData it doesn't have the desired effect of waiting for the episode to be defined (I have attached my code as pictures)
Anyone have a clue how I could do this, perhaps another method without composables?
Thanks for your time
However when I run my code the episode is undefined when passed as an argument to the useSimilarEpisodes composable.
I have tried adding an await to the first composable but this blocks navigation, and if I do useLazyAsyncData it doesn't have the desired effect of waiting for the episode to be defined (I have attached my code as pictures)
Anyone have a clue how I could do this, perhaps another method without composables?
Thanks for your time


