Skip to content

Commit

Permalink
fix rn init props
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki committed Dec 12, 2024
1 parent cc87539 commit 45d6d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions docs-vuepress/guide/platform/rn.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,3 @@
### Webview API

### 其他使用注意事项






4 changes: 2 additions & 2 deletions packages/core/src/core/proxy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { reactive, shallowReactive } from '../observer/reactive'
import { reactive } from '../observer/reactive'
import { ReactiveEffect, pauseTracking, resetTracking } from '../observer/effect'
import { effectScope } from '../platform/export/index'
import { watch } from '../observer/watch'
Expand Down Expand Up @@ -290,7 +290,7 @@ export default class MpxProxy {
if (isReact) {
// react模式下props内部对象透传无需深clone,依赖对象深层的数据响应触发子组件更新
this.props = this.target.__getProps()
shallowReactive(this.processIgnoreReactive(this.props))
reactive(this.processIgnoreReactive(this.props))
} else {
this.props = diffAndCloneA(this.target.__getProps(this.options)).clone
reactive(this.processIgnoreReactive(this.props))
Expand Down

0 comments on commit 45d6d2c

Please sign in to comment.