Skip to content

Use nuxt preview composable to make sure that fetching is done properly #81

Open

Description

@SebbeJohansson

Description

Hi! Nuxt has added a new composable called usePreviewMode to force refetching when in a prerendered page. I think storyblok can benefit from using this new built in composable.

nuxt/nuxt#21705

Suggested solution or improvement

Use nuxt/nuxt#21705

Additional context

No response

Validations

Activity

  1. self-assigned this
    on Apr 29, 2024
  2. added a commit that references this issue on Jun 20, 2025
  3. maoberlehner commented on Aug 27, 2025

    @maoberlehner
    Contributor

    Hey @SebbeJohansson! Thanks for the heads up! Do you have an example of how usePreviewMode can benefit us? I've now read the documentation twice, and I still don't quite understand what it's for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg: nuxt[Package] @storyblok/nuxtstatus: needs-infoAwaiting information from author

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions