infor-design / enterprise-wc

Enterprise-grade web component library for the Infor Design System
Apache License 2.0
27 stars 26 forks source link

Asynchronous Loop not rendering UI in ERP LN Homepage #1886

Open santosh-sy opened 7 months ago

santosh-sy commented 7 months ago

Hi Infor-Support Team, We are currently using Infor WidgetSDK to develop widgets for the ERP LN Homepages. We have a feature of a auto loop where the program will loop through an array, the loop will perform an iteration after 5 seconds using setTimeout function and it will call the ION api for the latest data. This implementation is working as expected when running on the chrome web browser. But when deployed onto LN Homepages, we don't see the new data updated in the UI. Through print statements, and network in Chrome Dev Tools, we can confirm the API call and data retrieval is working fine, but the new UI is not rendered, when the data is updated. The new UI only renders when the user interacts with objects on the such as buttons, text input fields, menu drop downs, etc. We would greatly appreciate your advise on this issue.

Thank you, Santosh

Auto_Refresh_Support_Issue.pdf

tmcconechy commented 7 months ago

@santosh-sy Im not following this issue. It would help if you follow the issue template and put all the information in https://github.com/infor-design/enterprise-wc/issues/new?assignees=&labels=&projects=&template=bug_report.md

We probably need at least:

1) An example we can run and verify maybe you can fork this and put the code in there https://stackblitz.com/edit/ids-enterprise-wc-beta-21?file=index.html 2) And steps to reproduce

Furthermore, i dont get why your doing a looping? And since the issue only happens in LN Homepages and we dont code on that one, maybe you need to get in touch with that team? We would only be able to help based on reduced test cases in the browser.

Is this even a component issue? Or a coding question on the "loop"?