Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to prefetch props via <Link> component #1175

Closed
adamsoffer opened this issue Feb 16, 2017 · 5 comments
Closed

Add option to prefetch props via <Link> component #1175

adamsoffer opened this issue Feb 16, 2017 · 5 comments

Comments

@adamsoffer
Copy link
Contributor

adamsoffer commented Feb 16, 2017

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

@gmaliandi
Copy link

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

@timneutkens
Copy link
Member

@gmaliandi lets add it to the readme under FAQ 😄

@adamsoffer
Copy link
Contributor Author

Brilliant!

@gmaliandi
Copy link

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

@timneutkens
Copy link
Member

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

@lock lock bot locked as resolved and limited conversation to collaborators Jan 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants