---
title: "Discussion on \"Vue: readonly的代理坑\" | Hashnode"
description: "Discussion on \"Vue: readonly的代理坑\". 解析 Vue reactivity 中 readonly 的深層代理行為，說明為何從 composable 返回的巢狀物件無法直接修改，並示範以 id 更新原始 state 的正確做法與範例。"
url: "https://hashnode.com/posts/vue-readonly-proxy-issue/69a005e7c9015c37f6f39f46"
---

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

Discussion

# [Vue: readonly的代理坑](https://urlun0404.hashnode.dev/vue-readonly-proxy-issue?utm_source=hashnode&utm_medium=feed)

解析 Vue reactivity 中 readonly 的深層代理行為，說明為何從 composable 返回的巢狀物件無法直接修改，並示範以 id 更新原始 state 的正確做法與範例。

Feb 26 · 1 min read · urlun0404.hashnode.dev  
Updated Mar 3  
Read the article

-   [#vuejs](https://hashnode.com/tag/vuejs)

## Written by

[You-Lun Lin](https://hashnode.com/@urlun0404)

@urlun0404 · New Taipei, Taiwan

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
