---
title: "Discussion on \"Vue 3 Reactivity Explained: A Deep Dive into the \"ref\" Function\" | Hashnode"
description: "Discussion on \"Vue 3 Reactivity Explained: A Deep Dive into the \"ref\" Function\". Uncover the magic of Vue 3's reactivity with our guide on the ref function. Explore dynamic updates & unleash the power of Vue 3's ref."
url: "https://hashnode.com/posts/deep-dive-into-vue-3-ref-function/64be75d715f373412d5c760b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Vue 3 Reactivity Explained: A Deep Dive into the "ref" Function](https://nasserspace.hashnode.dev/deep-dive-into-vue-3-ref-function?utm_source=hashnode&utm_medium=feed)

Uncover the magic of Vue 3's reactivity with our guide on the ref function. Explore dynamic updates & unleash the power of Vue 3's ref.

Jul 24, 2023 · 8 min read · nasserspace.hashnode.dev  
Read the article

-   [#vuejs](https://hashnode.com/tag/vuejs)
-   [#vue3](https://hashnode.com/tag/vue3)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#frontend](https://hashnode.com/tag/frontend)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Ahmed Nasser](https://hashnode.com/@nasser009)

@nasser009 · Cairo, Egypt

  
[View profile](https://hashnode.com/@nasser009)

Frontend Engineer @Instabug 👨‍💻

Frontend engineer @Instabug. Passionate about building digital products with 4+ years of experience providing high-impact web solutions.

## Responses 2

Markdown supported · ⌘↵ to post

[Egor V](https://hashnode.com/@EV1992)

[May 25, 2024](https://hashnode.com/posts/deep-dive-into-vue-3-ref-function/64be75d715f373412d5c760b/comment/6651a48af504574e90219a63)

In this implementation if we try to create a ref with an object as a value (e.g. const test = ref({ count: 2 })) and then, if we change the value (e.g. test.value.count = 4) the setter (and accordingly the effect) WON'T BE triggered. I guess it's ok, because the setter tracks only the value changes but we try to change a property of the value. The intresting thing is it works in a different way in Vue and the setter WILL BE triggered in this case. It would be nice to know why and how they implemented it.

[Ahmed Moustafa](https://hashnode.com/@x4ahmed)

[Jul 30, 2023](https://hashnode.com/posts/deep-dive-into-vue-3-ref-function/64be75d715f373412d5c760b/comment/64c6a39ca55a1588fc2c7d23)

Keep the amazing work up! 😊

[Ahmed Nasser](https://hashnode.com/@nasser009)

[Jul 30, 2023](https://hashnode.com/posts/deep-dive-into-vue-3-ref-function/64be75d715f373412d5c760b/comment/64c6a39ca55a1588fc2c7d23#reply-64c6b235ff50d1863bf771a0)

Thanks bro! ❤️
