Patch Changes
-
fix
withInitDataInState
got wrong state in 2nd or more timesdefaultDataProcessor
, now it will keep its own state. (#1478) -
change
__CreateElement('raw-text')
to__CreateRawText('')
to avoidsetNativeProps
not working (#1570) -
Fix wrong render result when using expression as
key
. (#1541)See lynx-family/lynx-stack#1371 for more details.
-
fix:
Cannot read properties of undefined
error when usingSuspense
(#1569) -
Add
animate
API in Main Thread Script(MTS), so you can now control a CSS animation imperatively (#1534)import type { MainThread } from '@lynx-js/types'; function startAnimation(ele: MainThread.Element) { 'main thread'; const animation = ele.animate([{ opacity: 0 }, { opacity: 1 }], { duration: 3000, }); // Can also be paused // animation.pause() }