emanuelefricano93 / frxjs-Ngx-Timeline

NgxTimeline Angular Library
29 stars 10 forks source link

Dynamic Data adding #28

Closed HalilAkduman closed 9 months ago

HalilAkduman commented 9 months ago

Hi, i have a dynamic dataset. When i'm trying to add more event to my data it doesnt render on screen. I have tried using changeDetectorRef it doesnt work. Also ı tried converting my data type to subject and rendering on screen with | async pipe also didnt work. Do you have a solution for this problem ?

Thanks :)

emanuelefricano93 commented 9 months ago

Hello @HalilAkduman ,

Ok, I will look into it, in the meantime to fix it you should provide a new array to the lib when you add a new item, to trigger the change detection.

You can use this approach this.yourArray = [].concat(this.yourArray)

I am releasing the fix!

emanuelefricano93 commented 9 months ago

Release v17.0.2 fix this issues