Nuxt/docs/content/3.api/3.utils/refresh-nuxt-data.md

502 B

title description
refreshNuxtData refreshNuxtData refetches all data from the server and updates the page.

refreshNuxtData

refreshNuxtData refetches all data from the server and updates the page.

::ReadMore{link="/getting-started/data-fetching"} ::

refreshNuxtData(keys?: string | string[])

Available options:

  • keys: Provides an array of keys that are used in useAsyncData to refetch. When it's not specified, all useAsyncData and useFetch will be refetched.