Skip to content

Commit

Permalink
feat(createGlobalState): 支持自定义结果
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Jul 8, 2020
1 parent 7cc7972 commit e481ce0
Show file tree
Hide file tree
Showing 4 changed files with 369 additions and 123 deletions.
29 changes: 27 additions & 2 deletions src/react/__snapshots__/createGlobalState.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`createGlobalState bug 延后注册的订阅不能获取最新值: 只有 parent 且值为 o 1`] = `
exports[`createGlobalState 自定义 result bug 延后注册的订阅不能获取最新值: 只有 parent 且值为 o 1`] = `
<DocumentFragment>
<div
id="parent"
Expand All @@ -10,7 +10,32 @@ exports[`createGlobalState bug 延后注册的订阅不能获取最新值: 只
</DocumentFragment>
`;

exports[`createGlobalState bug 延后注册的订阅不能获取最新值: 有 parent 和 child 且值都为 ok 1`] = `
exports[`createGlobalState 自定义 result bug 延后注册的订阅不能获取最新值: 有 parent 和 child 且值都为 ok 1`] = `
<DocumentFragment>
<div
id="parent"
>
ok
</div>
<div
id="child"
>
ok
</div>
</DocumentFragment>
`;

exports[`createGlobalState 默认 actions bug 延后注册的订阅不能获取最新值: 只有 parent 且值为 o 1`] = `
<DocumentFragment>
<div
id="parent"
>
o
</div>
</DocumentFragment>
`;

exports[`createGlobalState 默认 actions bug 延后注册的订阅不能获取最新值: 有 parent 和 child 且值都为 ok 1`] = `
<DocumentFragment>
<div
id="parent"
Expand Down

0 comments on commit e481ce0

Please sign in to comment.