Next.js: Add option to prefetch props via <Link> component

Created on 16 Feb 2017  路  5Comments  路  Source: vercel/next.js

Per @rauchg's suggestion, this option should be explicit:

<Link prefetchProps={true} />

Adding the ability to prefetch props has some seriously cool implications, the most obvious being that it essentially sounds the death knell for loading indicators.

high-five-cat_o_646881

Most helpful comment

And today we published this in NPM: data-prefetch-link!

All 5 comments

Hi! We just blogged about a way of doing this by adding a caching layer and calling getInitialProps when prefetching a page.

@gmaliandi lets add it to the readme under FAQ 馃槃

Brilliant!

And today we published this in NPM: data-prefetch-link!

Going to close this issue. Core support is not needed thanks to @gmaliandi's brilliant work 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Timer picture Timer  路  90Comments

acanimal picture acanimal  路  74Comments

matthewmueller picture matthewmueller  路  102Comments

Timer picture Timer  路  87Comments

poyiding picture poyiding  路  73Comments