Skip to content

带有 namespace 时 setData 范围过大 #34

@lei1248276

Description

@lei1248276

研究了半天我发现storeBindings在设置了namespace以后调用仓库任意一个action方法后会导致所有的观察数据全部更新。

Activity

self-assigned this
on May 15, 2024
LastLeaf

LastLeaf commented on May 15, 2024

@LastLeaf
Member

目前的实现原理是 namespace 所有 fields 上会被 setData 到同一个字段上。

可以考虑改一下这个行为。

changed the title [-]BUG:数据会异常更新[/-] [+]带有 namespace 时 setData 范围过大[/+] on May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @LastLeaf@lei1248276

      Issue actions

        带有 namespace 时 setData 范围过大 · Issue #34 · wechat-miniprogram/mobx-miniprogram-bindings