Skip to content

Suggestion: Allow Ref<string> for storyblok url in useAsyncStoryblok #85

@TheAlexLichter

Description

@TheAlexLichter

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 StoryblokSDK

Suggested solution or improvement

Allow refs to be passed and let the composable handle changes by watching and (re-)fetching the content.

Additional context

No response

Validations

Metadata

Metadata

Assignees

Labels

dx[General] Improvement or fix with impact on the developer experience.nuxt[Package] `storyblok-nuxt` related issues.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions