We have scenario here is that:
Fetch data from service.
Change object structure as per TreeView component structure.
Use getderivedstate function to change object structure and then update state
after doing above steps when component start rendering it does not render i have used below component in to render method of react component.
<TreeViewComponent
ref={treeView => workActivities.treeViewComponentObj = treeView}
cssClass='treeview-external-drag disable-ckeckboxes'
fields={workActivities.fields}
nodeTemplate={this.renderTreeViewNodes}
/>
why is the component not reading the change in dataSource and render the component.
Below is the post I was following but i did not got any concreet solution:
Regards,
Sonam Diwate