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.
Apparently isClient
is deprecated now, and you should use process.client
instead.
Apparently
isClient
is deprecated now, and you should useprocess.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.
Thanks for the heads-up Max!
right! keep courses up to date should be a priority
Thanks Sharing, but isClient seems not working, when I console log, which returns undefined ...
@dameng It looks like isClient
was deprecated. If you look above, process.client
is what is used now.