Match-id-54443aab0297038d54f694b36501e2a8bdcef764

This commit is contained in:
* 2023-03-30 14:28:52 +08:00
commit 2da7f9dd55
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
## 0.0.43 (2023-03-30)
- **core**: 解决act方法无法等待useEffect触发的更新完成问题
## 0.0.42 (2023-03-24) ## 0.0.42 (2023-03-24)
- **core**: 解决直接通过defineProperty赋值vtypeenumerable为false导致vtype为空问题 - **core**: 解决直接通过defineProperty赋值vtypeenumerable为false导致vtype为空问题

View File

@ -4,7 +4,7 @@
"keywords": [ "keywords": [
"horizon" "horizon"
], ],
"version": "0.0.42", "version": "0.0.43",
"homepage": "", "homepage": "",
"bugs": "", "bugs": "",
"main": "index.js", "main": "index.js",

View File

@ -16,7 +16,7 @@
import Horizon, { render, useState, act, useEffect } from '@cloudsop/horizon/index.ts'; import Horizon, { render, useState, act, useEffect } from '@cloudsop/horizon/index.ts';
describe('Horizon.act function Test', () => { describe('Horizon.act function Test', () => {
it('Parent can get Child instance by refs', function () { it('The act can wait for the useEffect update to complete.', function () {
const Parent = props => { const Parent = props => {
const [buttonOptions, setBtn] = useState([]); const [buttonOptions, setBtn] = useState([]);
const [checkedRows, setCheckedRows] = useState([]); const [checkedRows, setCheckedRows] = useState([]);