Closed vallemar closed 1 year ago
@farfromrefug this PR is ready to review
@farfromrefug Why is it possible that view
is a GridLayout but nativeViewProtected
is null on this line? https://github.com/nativescript-community/ui-collectionview/blob/master/src/collectionview/index.ios.ts#L675
I got an exception calling removeFromSuperview
because nativeViewProtected
is null. This happens when I'm scrolling through the list, but on the first display of the list it works fine
@vallemar it means vue 3 is destroying the template nativeview where it should not. Think it is an issue on vue 3 side
@vallemar it means vue 3 is destroying the template nativeview where it should not. Think it is an issue on vue 3 side
@rigor789 what can be happening here on ios? it's almost a clone of your listView https://github.com/nativescript-community/ui-collectionview/pull/53/files#diff-4252295cc5d9c750795c8997163e0efc0a46b0435ba4cb074d025375a5ed80d7R1
@vallemar listview and collectionview are very different. The one you should compare to is the the vue2 impl of collectionview
@vallemar all working now?
@farfromrefug I'll try the updated branch now, thanks!
@farfromrefug I think we can merge this. Now collectionView is working.
There are 3 problems left to solve, but I think it is not from the implementation of this PR.
autoReloadItemOnLayout
) has strange behavior on ios, sometimes it works and sometimes it doesn't. This is NOT happening in vue2.We can merge this PR as it gives the basic collectionView functionality to vue3 and iterate over it in other PRs
@farfromrefug I had to add this because vue detection seems to think it's a problem, I don't know why https://github.com/nativescript-community/ui-collectionview/pull/53/files#diff-1ad746efdafa03d38640e5d994fb7df938e003beacd00e8c81458f6c991433cfR257-R259
Update: do not merge, we are trying to solve the import for vue 3!