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

John Lindquist
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
Max
~ 2 years ago

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

Lyon
Lyon
~ 2 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
D
~ 2 years ago

Thanks for the heads-up Max!

Tommaso rossi
Tommaso rossi
~ a year ago

right! keep courses up to date should be a priority

dameng
dameng
~ 3 months ago

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

Lucas Minter
Lucas Minter
~ 3 months ago

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