1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Fixed log on component prefetch (#563)

This commit is contained in:
Dan Zajdband 2016-12-29 10:56:22 -03:00 committed by Naoyuki Kanezawa
parent e8985b3588
commit 31703d4c78

View file

@ -14,7 +14,7 @@ export default () => (
{ /* we imperatively prefetch on hover */ } { /* we imperatively prefetch on hover */ }
<RegularLink href='/about'> <RegularLink href='/about'>
<a onMouseEnter={() => prefetch('/about') && console.log('prefetching /about!')}>About</a> <a onMouseEnter={() => { prefetch('/about'); console.log('prefetching /about!') }}>About</a>
</RegularLink> </RegularLink>
<Link href='/contact' prefetch={false}> <Link href='/contact' prefetch={false}>