Skip to content

Non blocking navigation #41

@pi0

Description

@pi0

One of newer features nuxt introduced in v2.12 (it is before original nuxt-movies project created i guess) is fetch hook which in comparation to asyncData, awaits during server-side-rendering but does not blocks route change with client-side navigation. This gives us possibility to quickly navigate to next page while individual parts of page are loading. Which can be by a skeleton but we usually have some vital meta from current page in global state like movie title so can reuse it. (this technique is used in nuxt hackernews demo for example)

Action points:

  • Try method for landing to movie navigation
  • Investigate limitations that it brings that developers may want to avoid
  • Compare user experience and possible introduced layout shifts

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions