Weekly Vue News #115 - Detecting Server vs. Client-Side Code Execution in Nuxt

Weekly Vue News #115

Detecting Server vs. Client-Side Code Execution in Nuxt

Hi 👋

this week is the 3rd annual Nuxt Nation Conference, it's all happening on October 18-19!

Nothing special to add this week, so let's dive into the news!

Have a lovely week ☀️


To support me:

Vue
📕 7 Quick Tips about Vue Styles You (Might) Didn't Know
👉🏻 Fotis shares 7 tips to help you to better understand the style tag in Vue.
fadamakis.com
📕 The Vue 3 Transition Component 101
👉🏻 This article will explore how the Vue 3 Transition component works and demonstrate its usage with code examples.
vuejsfeed.com
📕 Vue 3 Lifecycle Hooks Explained
👉🏻 In this article, you will learn the different lifecycle hooks in Vue 3, how to use them, and how to integrate them into your enterprise application.
kaperskyguru.medium.com
📕 Upgrading to Vue 3 and Nuxt 3 (from Vue 2, in case you didn't gather)
👉🏻 In this article, we're diving into the world of upgrading to Vue 3 and Nuxt 3.
medium.com
📕 Using URL to store state in Vue
👉🏻 This article explains how to persist state by using the browser's native URL.
dev.to
🛠️ Vue Data UI
👉🏻 A user-empowering data visualization Vue components library.
vue-data-ui.graphieros.com

Nuxt
📕 10 of the Best Nuxt 3 Tutorials
👉🏻 This article is compilation of 10 amazing tutorials to help you get started with Nuxt 3 or help you on your Nuxt 3 journey.
masteringnuxt.com
📕 Exploring the Nuxt 3 DevTools
👉🏻 In this article, you'll explore the installation and configuration of the @nuxt_js dev tools, as well as dive into each of the features offered, including viewing pages, components, imports, modules, and more.
www.vuemastery.com
📹 Nuxt 3 Course for Beginners
👉🏻 Learn how to use Nuxt 3 in this 3 hour full tutorial for beginners.
www.youtube.com
📹 Nuxt 3 Auto Imports - Unleash Their Full Potential
👉🏻 In this video, you'll explore the power of Nuxt 3 Auto Imports and how you can configure them to make your DX even better
www.youtube.com

📅 Events
Nuxt Nation 2023
👉🏻 18-19 October 2023, free online event.
nuxtnation.com
VueConf Toronto
👉🏻 9-10 November 2023, Toronto, Canada.
www.vuetoronto.com

💬 Quote of the week

🔥 Nuxt Tip: Detecting Server vs. Client-Side Code Execution

If you need to specify that you want run a certain code block in your Nuxt 3 application only on the client-side, you can use the process.client variable:

Component.vue
1<script setup>
2if (process.client) {
3 // This code will only run on the client-side
4}
5</script>

Analogously, if you need to specify that you want run a certain code block only on the server-side, you can use the process.server variable:

Component.vue
1<script setup>
2if (process.server) {
3 // This code will only run on the server-side
4}
5</script>
Why is this useful?

This is useful if you need to run code that is only available on the client-side or server-side. For example, if you need to access the window object, you can only do so on the client-side.

😂 Fun

🧑🏻‍💻 In Other News
📕 Lessons From Debugging
👉🏻 16 quick lessons from debugging, such as getting a second set of eyes on your code.
matt-rickard.com
📕 Don't panic! A playbook for managing any production incident
👉🏻 Knowing how to handle it when things break is more important, and practical, than trying to prevent things from ever breaking at all.
stackoverflow.blog
📕 How to Debug Browser Redirects
👉🏻 Redirects are tough to discover and debug because they're subtle and instantaneous.
👉🏻 Here are some good methods for working with them!
dodov.dev
🛠️ n64js
👉🏻 An n64 emulator written in (mostly) pure ES6 JavaScript.
👉🏻 It runs many roms at full framerate.
github.com
🛠️ string-ts
👉🏻 Strongly-typed string functions for all
github.com
🛠️ Shoelace
👉🏻 A collection of professionally designed, everyday UI components built on Web standards.
👉🏻 Works with all frameworks including Vue and regular HTML/CSS/JS.
github.com

Comments? Join the discussion about this issue here.

Until next week,

Unsubscribe from this newsletter
Holzapfelkreuther Str. 19, 81375 Munich, Germany

评论

此博客中的热门博文

Scripting News: Tuesday, June 11, 2024

Scripting News: Tuesday, February 13, 2024