Closed NeckbreakerPascal closed 3 years ago
Short update on this one, not sure if it is maybe a related bug to ion-refresher, ion-slide in combination with the ngFor Directive.
Instead of this.slideArray = data;
I manipulate the array in a different way.
this.slideArray = this.slideArray.concat(data);
this.slideArray = this.slideArray.slice(0, limit);
This if for sure a quick and dirty fix, but does its job for now.
If you were to do the following instead, does it fix the issue?
this.slideArray = [...data];
Many frameworks and tools have specific rules about how you should update reactive arrays and objects, which could be why this issue is happening.
If you were to do the following instead, does it fix the issue?
this.slideArray = [...data];
Many frameworks and tools have specific rules about how you should update reactive arrays and objects, which could be why this issue is happening.
Hey there, thanks for the reply. then the slider is completely empty after the refresh.
Can you reproduce this in a blank Ionic starter app and provide a link to the repo?
Can you reproduce this in a blank Ionic starter app and provide a link to the repo?
I tried, but I was not able because it has to do with those API-Requests. I load the Data from one of our servers. When I do it in a blank starter app it has to be something different.
I tried to reproduce with a promise and so on, but it did not work.
Can you send over the app you see the issue in?
Can you send over the app you see the issue in?
Not at the moment. I already fixed it, and the app is not open for puplic. Maybe I can do some kind of a recast, when I undo my changes. Would that help you?
Without being able to reproduce the issue on my end it is hard to say whether or not this is a bug in Ionic Framework. Where you were able to resolve the issue via https://github.com/ionic-team/ionic-framework/issues/22962#issuecomment-785159502, maybe we can close the issue for now and revisit if it happens again?
Without being able to reproduce the issue on my end it is hard to say whether or not this is a bug in Ionic Framework. Where you were able to resolve the issue via #22962 (comment), maybe we can close the issue for now and revisit if it happens again?
Sure thing, totally understand it. Good idea to close and only if it re-appears i will open.
Thanks for the help so far. #22962 (comment) solved it for me.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version:
[ ] 4.x [x] 5.x
Current behavior:
Expected behavior:
Steps to reproduce:
Related code:
Short Version:
Other information:
Ionic info: