Skip to content

Commit

Permalink
docs(reactive): update toJS/markRaw docs
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Sep 16, 2021
1 parent 5d24551 commit 77cb7b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/reactive/docs/api/markRaw.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Mark any object or class prototype as never being hijacked by observable, priority is higher than markObservable

Note: If you mark an object that is already observable with markRaw, then toJS will not convert it into a normal object

## Signature

```ts
Expand Down
2 changes: 2 additions & 0 deletions packages/reactive/docs/api/markRaw.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

标记任意一个对象或者类原型为永远不可被 observable 劫持,优先级比 markObservable 高

注意:如果对一个已经是 observable 的对象标记 markRaw,那么 toJS,是不会将它转换成普通对象的

## 签名

```ts
Expand Down
2 changes: 2 additions & 0 deletions packages/reactive/docs/api/toJS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Deep recursion converts observable objects into ordinary JS objects

Note: If you mark an object that is already observable with markRaw, then toJS will not convert it into a normal object

## Signature

```ts
Expand Down
2 changes: 2 additions & 0 deletions packages/reactive/docs/api/toJS.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

深度递归将 observable 对象转换成普通 JS 对象

注意:如果对一个已经是 observable 的对象标记 markRaw,那么 toJS,是不会将它转换成普通对象的

## 签名

```ts
Expand Down

0 comments on commit 77cb7b7

Please sign in to comment.