Navigate with nuxt-link and Customize isClient Behavior in Nuxt and Vue.js

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

Because Nuxt renders pages on the server, you should use the nuxt-link components to navigate between pages. Each time a page loads, you can check if you're on the client or server and avoid doing unnecessary loading based on how the page was rendered. This lesson walks you through using nuxt-link and isClient to navigate and avoid reloading data.

Max
~ 6 years ago

Apparently isClient is deprecated now, and you should use process.client instead.

Lyon
~ 6 years ago

Apparently isClient is deprecated now, and you should use process.client instead.

Yes I found the same problem, isClient doesn't work!

Can Egghead update previous course to keep in line with latest framework version? Otherwise it will confuse to the learners.

Thanks Max.

D
~ 5 years ago

Thanks for the heads-up Max!

Tommaso rossi
~ 5 years ago

right! keep courses up to date should be a priority

dameng
~ 4 years ago

Thanks Sharing, but isClient seems not working, when I console log, which returns undefined ...

Lucas Minter
~ 4 years ago

@dameng It looks like isClient was deprecated. If you look above, process.client is what is used now.