File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/collectionview/svelte Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -141,10 +141,15 @@ export default class CollectionViewViewElement extends NativeViewElementNode<Col
141141 // ensure we dont do unnecessary tasks if index did not change
142142 // console.log('updateListItem', args.index, _view.__CollectionViewCurrentIndex__);
143143 _view . __CollectionViewCurrentIndex__ = args . index ;
144+ // _suspendNativeUpdates with special parameters for Akylas fork to preven requestLayout
145+ //@ts -ignore
146+ _view . _suspendNativeUpdates ( 0 , true , true ) ;
144147 _view . _batchUpdate ( ( ) => {
145148 componentInstance . $set ( props ) ;
146149 flush ( ) ; // we need to flush to make sure update is applied right away
147150 } ) ;
151+ //@ts -ignore
152+ _view . _resumeNativeUpdates ( 0 , true , true , true ) ;
148153 }
149154 }
150155
You can’t perform that action at this time.
0 commit comments