appronto / DataviewLoader

A simple widget to place a loading gif when content is loaded on the page.
Apache License 2.0
4 stars 5 forks source link

mx-progress not getting dismissed from page #10

Open manikandans88 opened 3 years ago

manikandans88 commented 3 years ago

Hello,

We are running into an issue where mx-progress is not getting removed from page when user switches page before previous page load complete. In our application we have multiple cards on header, each card click will open a new page. Each page consists of multiple data view loader, which retrieves data from REST services in asynchronous manner, render data in data grid and labels.

When we inspect the elements while the issue occurs the div responsible to show the progress indicator is not getting removed from page, in success scenario the div removed from HTML elements.

Screenshot 2021-02-10 at 4 32 30 PM

We thought this issue is happening in Mendix , so created support ticket to Mendix with sample application but Mendix support team replied that this issue is happening because of DataView Loader widget.

Can you please help us to find solution for this issue?

pimvdnoll commented 3 years ago

Hi @manikandans88 as we want to reproduce this behavior can you give us some more insights (or even better a testproject)? For example, the new Marketplace https://marketplace.mendix.com/ also uses the dataview loader on the front page :)

manikandans88 commented 3 years ago

Hello Pim van der Noll,

Thanks for reply.

The test project using APIs internal to our company. Can we have a call over Skype or Teams or any other channel in that i can show you the test project and steps to reproduce the issue. will that work for you? Please provide your comments.

Kind Regards, Manikandan S

joelvdgraaf commented 3 years ago

Hi @manikandans88 can you make a test project where you replace the API calls with a Wait java action to simulate the API loading. This makes it possible for us to reseach the issue locally. Wait.zip

manikandans88 commented 3 years ago

Hello Joel van de Graaf and Pim van der Noll,

I have managed to replace API calls to some test APIs and replicate the issue in test project. Please find attached test project and other supported files.

To understand and reproduce the issue clearly attached screen recording from test project both in success and failure cases. Attached console logs and also a reply from Mendix support in below dropbox link.

https://www.dropbox.com/sh/kqnq0oj7anxsmtu/AABGdJ14id3sm0hOMfPqY6Xba?dl=0

Please let me know if you need further details.

Kind Regards, Manikandan S

manikandans88 commented 3 years ago

Hello Joel van de Graaf and Pim van der Noll,

Any update on this issue?. Based on this we will plan for a release, actually release is planned sometime next week.

Kind Regards, Manikandan S

joelvdgraaf commented 3 years ago

Hi Manikandan,

We're doing this on best efford so we cannot promise any delivery. At first, Mendix has a feature then when a page loads longer than 300/500ms automatically a horizontal loader is placed. This behavior cannot be altered by the dataviewloader widget, because it's Mendix that is executing his page loading logic.

Based on you screen capture, the user is clicking around a lot and finally the Mendix loader is not being closed. As mentioned earlier, that behavior cannot be altered.

Can you explain why and when an user will do this kind of behavior? For me it doesn't make sense this would be a real case scenario.

There isn't a lot to change possible to only avoid that the error will occur in the logging.

Kind regards, Joël

manikandans88 commented 3 years ago

Hi Joel van de Graaf ,

I agree that use case shown in screen capture is not a real use case or extreme use case but this is true only with respect to sample application. But in our real application this issue is reproducible even when user tries to navigate from one page to another page while previous page load is in progress.

As per Mendix this issue is due to usage of Dataview Loader widget, can we please get some information what is the cause of this issue and how we can avoid this issue if actual solution is taking time.

Kind Regards, Manikandan S

manikandans88 commented 3 years ago

Hello Joel van de Graaf and Pim van der Noll,

Please provide some update on this issue?.

Kind Regards, Manikandan S