My gantt data is not refreshing

I am using react with dhtmlx gantt to create the gantt chart.My initial data get loaded perfectely. After applying filter in data it is not reflecting my new data.I am passing my data in this way

  <Gantt tasks={data} />

i had added cleardata and refresh data also but still it is not displaying properly.

Hi,
please share some code or a complete demo so it would be possible to reproduce the issue