intact-react
Advanced tools
Comparing version 3.0.32 to 3.0.33
@@ -629,6 +629,11 @@ 'use strict'; | ||
else if (tmp = getEventName(key, events)) { | ||
// We have to call react event callback asynchronously, because react will update | ||
// view immediately when one native event happend. | ||
// @unit test: update in updating | ||
// @issue: https://github.com/ksc-fe/kpc/issues/894 | ||
/** | ||
* We have to call react event callback asynchronously, because react will update | ||
* view immediately when one native event happend. | ||
* @unit test: update in updating | ||
* @issue: https://github.com/ksc-fe/kpc/issues/894 | ||
* | ||
* @Modify: nextTick will affect event stopPropagation | ||
* @issue: #973 | ||
*/ | ||
normalizedProps[tmp] = (function () { | ||
@@ -639,6 +644,9 @@ var args = []; | ||
} | ||
intact.nextTick(function () { | ||
// nextTick(() => { | ||
reactDom.unstable_batchedUpdates(function () { | ||
value.apply(void 0, args); | ||
}); | ||
// }); | ||
}); | ||
// normalizedProps[tmp] = value; | ||
} | ||
@@ -645,0 +653,0 @@ else if (key.startsWith('slot')) { |
@@ -622,6 +622,11 @@ 'use strict'; | ||
else if (tmp = getEventName(key, events)) { | ||
// We have to call react event callback asynchronously, because react will update | ||
// view immediately when one native event happend. | ||
// @unit test: update in updating | ||
// @issue: https://github.com/ksc-fe/kpc/issues/894 | ||
/** | ||
* We have to call react event callback asynchronously, because react will update | ||
* view immediately when one native event happend. | ||
* @unit test: update in updating | ||
* @issue: https://github.com/ksc-fe/kpc/issues/894 | ||
* | ||
* @Modify: nextTick will affect event stopPropagation | ||
* @issue: #973 | ||
*/ | ||
normalizedProps[tmp] = (function () { | ||
@@ -632,6 +637,9 @@ var args = []; | ||
} | ||
intact.nextTick(function () { | ||
// nextTick(() => { | ||
reactDom.unstable_batchedUpdates(function () { | ||
value.apply(void 0, args); | ||
}); | ||
// }); | ||
}); | ||
// normalizedProps[tmp] = value; | ||
} | ||
@@ -638,0 +646,0 @@ else if (key.startsWith('slot')) { |
import { __spreadArray, __assign, __extends } from 'tslib'; | ||
import { removeVNodeDom, createCommentVNode, createTextVNode, createComponentVNode, nextTick, isComponentClass, validateProps, inject, provide, setInstance, findDomFromVNode, Component as Component$1, callAll } from 'intact'; | ||
import { removeVNodeDom, createCommentVNode, createTextVNode, createComponentVNode, isComponentClass, validateProps, inject, provide, setInstance, findDomFromVNode, Component as Component$1, callAll } from 'intact'; | ||
export * from 'intact'; | ||
@@ -626,6 +626,11 @@ import { version, createElement, createContext, cloneElement, forwardRef, Fragment, createRef } from 'react'; | ||
else if (tmp = getEventName(key, events)) { | ||
// We have to call react event callback asynchronously, because react will update | ||
// view immediately when one native event happend. | ||
// @unit test: update in updating | ||
// @issue: https://github.com/ksc-fe/kpc/issues/894 | ||
/** | ||
* We have to call react event callback asynchronously, because react will update | ||
* view immediately when one native event happend. | ||
* @unit test: update in updating | ||
* @issue: https://github.com/ksc-fe/kpc/issues/894 | ||
* | ||
* @Modify: nextTick will affect event stopPropagation | ||
* @issue: #973 | ||
*/ | ||
normalizedProps[tmp] = (function () { | ||
@@ -636,6 +641,9 @@ var args = []; | ||
} | ||
nextTick(function () { | ||
// nextTick(() => { | ||
unstable_batchedUpdates(function () { | ||
value.apply(void 0, args); | ||
}); | ||
// }); | ||
}); | ||
// normalizedProps[tmp] = value; | ||
} | ||
@@ -642,0 +650,0 @@ else if (key.startsWith('slot')) { |
@@ -15,4 +15,5 @@ import { Reference, IntactDom, VNode, ComponentConstructor, ComponentFunction, Hooks } from './types'; | ||
i?: number; | ||
done?: boolean; | ||
}): void; | ||
export declare const namespaces: Record<string, string>; | ||
export declare const hooks: Hooks; |
{ | ||
"name": "intact-react", | ||
"version": "3.0.32", | ||
"version": "3.0.33", | ||
"description": "A compatibility layer for running intact component in React@17", | ||
@@ -32,6 +32,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"intact": "^3.0.32", | ||
"intact-shared": "^3.0.32", | ||
"intact": "^3.0.33", | ||
"intact-shared": "^3.0.33", | ||
"tslib": "^2.3.1" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1070054
109
25176
Updatedintact@^3.0.33
Updatedintact-shared@^3.0.33