• Feed
  • Discussions
onInvalidate

onInvalidate

#oninvalidate
0 followers·1 articles

onInvalidate

#oninvalidate·0 followers·1 articles
onInvalidate
Sun Pochin
Sun Pochin
sunpochin.hashnode.dev·Feb 19, 2025
Feb 19, 2025

三歲小朋友也能懂的 Vue watch 清理副作用 (clean up)

三歲小朋友也能懂的 Vue watch 清理副作用 (clean up) 1. watch 是什麼? 小朋友,你有沒有玩過「聽寫遊戲」呢?當老師說一個字,你就要寫下來對不對? 在 Vue 裡,watch 就像是在「聽」一個變數的變化。只要變數變了,它就會「做一些事情」,例如去網路上抓新的圖片。 2. 什麼是「過期的副作用」? 現在想像一下,你在畫畫,老師叫你畫「小貓」,你開始畫。但畫到一半,老師又說:「換畫小狗!」然後又說:「換畫小兔子!」結果,你的畫紙上畫滿了不同動物,亂七八糟的,對吧? 在 ...

Discuss·5 reads
onInvalidate

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

🛍️ Bion: The App That Pays You Crypto Just for Shopping (No Strings Attached)

Ekemini David ·19 reads

Stonfi amd TON wallet effecting US

Wissy Ak·28 reads

From HODLing to Living — How Bion is Unlocking Real-World Utility for Your Crypto

Edimavouge·22 reads

Top commenters this week

1 -
1 -
Anik Sikder
Anik Sikder
Jaime David
Jaime David
nandini
nandini
Leah Grant
Leah Grant

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior