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:
parent
e8985b3588
commit
31703d4c78
|
@ -14,7 +14,7 @@ export default () => (
|
|||
|
||||
{ /* we imperatively prefetch on hover */ }
|
||||
<RegularLink href='/about'>
|
||||
<a onMouseEnter={() => prefetch('/about') && console.log('prefetching /about!')}>About</a>
|
||||
<a onMouseEnter={() => { prefetch('/about'); console.log('prefetching /about!') }}>About</a>
|
||||
</RegularLink>
|
||||
|
||||
<Link href='/contact' prefetch={false}>
|
||||
|
|
Loading…
Reference in a new issue