Suggestion: Allow Ref<string>
for storyblok url in useAsyncStoryblok
#546
Labels
dx
[Issue] Improvement or fix with impact on the developer experience.
enhancement
[Issue][PR] New feature
improvement
[Issue][PR] Refactor or code improvement
Description
Hey 👋🏻
Right now,
useAsyncStoryblok
is not capable of taking a reactive reference (ref
) but only normal strings. As most composables allow using reactive values and deal with them - say e.g. the route/url updates, then the composable refetches. I think it'd be a great addition for the StoryblokSDKSuggested solution or improvement
Allow
ref
s to be passed and let the composable handle changes by watching and (re-)fetching the content.Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: