Skip to content

Commit b0a0948

Browse files
authored
fix: #83 修改behavior注入位置
如果behavior在头部注入会导致computed读不到mobx-bindings的数据
1 parent 17ffccb commit b0a0948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function ComponentWithComputed<
6464
if (!Array.isArray(options.behaviors)) {
6565
options.behaviors = []
6666
}
67-
options.behaviors.unshift(behavior)
67+
options.behaviors.push(behavior)
6868
return Component(options)
6969
}
7070

0 commit comments

Comments
 (0)