IgniteUI / igniteui-angular-samples

Ignite UI for Angular demos for all available components and features
https://bit.ly/2L19rhp
35 stars 25 forks source link

Grid Live-data Update sample, stop button does not work. #3477

Open MayaKirova opened 1 month ago

MayaKirova commented 1 month ago

Description

Grid Live-data Update sample, stop button does not stop live updates.

Steps to reproduce

  1. Open sample at: https://staging.infragistics.com/products/ignite-ui-angular/angular/components/grid/live-data#angular-live-data-update-example
  2. Click the Live All Prices button.
  3. Click the Stop button.

The same works on live: https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid/live-data#angular-live-data-update-example

Result

Grid should stop updating, but it doesn't.

Expected result

Grid should stop updating when the stop button is clicked.

dkamburov commented 3 weeks ago

@MayaKirova Not sure we need to do anything about it. Might be only on staging, as it seems it works on prod, as we've deployed 18 to prod samples already.

MayaKirova commented 3 weeks ago

@dkamburov Not sure if prod is fully updated or is still showing a cached version, since for me it seems to still use an older version (not 18): image

tishko0 commented 1 week ago

The issue is caused by the double emit of the selected event, causing the id returned by setInterval to be lost as it gets replaced by the second Id from the second call and it never gets cancelled. Issue should be resolved when the following one gets fixed: https://github.com/IgniteUI/igniteui-angular/issues/14445