Commit 31703d4c authored by Dan Zajdband's avatar Dan Zajdband Committed by Naoyuki Kanezawa

Fixed log on component prefetch (#563)

parent e8985b35
......@@ -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}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment