Minor Changes
-
Allow some
<list-item/>
s to be deferred and rendered in the background thread. (#204)Use the following syntax:
<list> - <list-item item-key="..."> + <list-item item-key="..." defer> <SomeHeavyComponent /> </list-item> </list>
You should render your heavyweight components with the
defer
attribute to avoid blocking the main thread.
Patch Changes
-
Add missing alias of
@lynx-js/react
andpreact
in testing library, it will fix theFailed to resolve import "@lynx-js/react/internal"
error in node_modules. (#1182) -
Allow any types of
dataProcessors
inlynx.registerDataProcessors
. (#1200) -
Make
loadLazyBundle
being able to render the content on the first screen of the background thread. (#1212) -
Fixed: An issue where the
lynxViewDidUpdate
callback did not trigger when data was updated from native. (#1171)Notice:
- Even if no data changes are actually processed after calling
updateData()
, thelynxViewDidUpdate
callback will still be triggered. - Only one
lynxViewDidUpdate
callback will be triggered per render cycle. Consequently, if multipleupdateData()
calls are made within a single cycle but the data updates are batched, the number oflynxViewDidUpdate
callbacks triggered may be less than the number ofupdateData()
calls.
- Even if no data changes are actually processed after calling
-
Supports
act
in testing library. (#1182)import { act } from '@lynx-js/react/testing-library'; act(() => { // ... });