View profile

Weekly Vue News - #63 - Securely unwrap a ref

Michael Hoffmann
Michael Hoffmann
Hi πŸ‘‹
last week I moved this newsletter to a separate domain: weekly-vue.news.
Hi, to more than 75 new subscribers πŸ‘‹πŸ€©
This week I’ll work on a new blog post about a polite newsletter signup that I have developed for my portfolio website based on Nuxt 3.
Have a great week β˜€οΈ

Vue Tip: Securely unwrap a ref
Image created with CodeSnap.dev
Image created with CodeSnap.dev
Returns the inner value if the argument is a ref, otherwise return the argument itself.
unref is a sugar function for val = isRef(val) ? val.value : val.
A typical usecase are composables as they should accept both refs and primitive values as inputs.
Curated Vue Content
JavaScript Tip: Create an array containing 1...N elements
Image created with CodeSnap.dev
Image created with CodeSnap.dev
Curated Web Development Content
Quote of the Week
Did you enjoy this issue? Yes No
Michael Hoffmann
Michael Hoffmann @mokkapps

This weekly Vue newsletter gives you high-quality tips and curated content to help you become a Vue.js expert.

Additionally, it provides content about web development topics like TypeScript, JavaScript, HTML5, and CSS3.

Published each Monday since June 2021.

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.
Holzapfelkreuther Straße 19, 81375 Munich, Germany