-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(createGlobalState): 延后注册的订阅不能获取最新值
- Loading branch information
Showing
3 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`createGlobalState bug 延后注册的订阅不能获取最新值: 只有 parent 且值为 o 1`] = ` | ||
<DocumentFragment> | ||
<div | ||
id="parent" | ||
> | ||
o | ||
</div> | ||
</DocumentFragment> | ||
`; | ||
|
||
exports[`createGlobalState bug 延后注册的订阅不能获取最新值: 有 parent 和 child 且值都为 ok 1`] = ` | ||
<DocumentFragment> | ||
<div | ||
id="parent" | ||
> | ||
ok | ||
</div> | ||
<div | ||
id="child" | ||
> | ||
ok | ||
</div> | ||
</DocumentFragment> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters