With ui-pager with 4 or more pages set, an error will occur if you move to the 4th page.
This only happens on iOS, not Android.
page1 mounted
page2 mounted
page3 mounted
page1 destroyed
page4 mounted
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught TypeError: Cannot read property 'removeFromSuperview' of null
at
_prepareCell(file: app/webpack:/@nativescript/template-blank-vue-ts/node_modules/@nativescript-community/ui-pager/index.ios.js:635:0)
at UICollectionViewDataSourceImpl.collectionViewCellForItemAtIndexPath(file: app/webpack:/@nativescript/template-blank-vue-ts/node_modules/@nativescript-community/ui-pager/index.ios.js:1048:0)
It seems that the 1st page is unloaded when moving to the 4th page, but it seems that an error has occurred due to this processing.
@nativescript-community/ui-pager/index.ios.js Commenting out line 635 eliminates the error.
However, if you just comment out line 635, a memory leak may occur.
Could you please provide a fix release for this issue?
With ui-pager with 4 or more pages set, an error will occur if you move to the 4th page. This only happens on iOS, not Android.
It seems that the 1st page is unloaded when moving to the 4th page, but it seems that an error has occurred due to this processing. @nativescript-community/ui-pager/index.ios.js Commenting out line 635 eliminates the error. However, if you just comment out line 635, a memory leak may occur. Could you please provide a fix release for this issue?
thank you for your answer.