Hi,
I have a page with the kanban component, and the users can select different "boards" from that page. Each board has a completely different set of columns and cards. Now, the way I'm currently doing this is, once the user selects a "board":
- Fetch the board data from the API;
- Destroy each column through the method deleteColumn(key)
- Update the dataSource
- Recreate each new column with the method addColumn({...})
Although it works, the problem is that there are a lot of columns (each board has around 30) and a lot of cards (each board has around 200-300 cards). So it takes a long time, and a lot of memory, for that to work. And it's pretty standard for the browser to freeze midway through.
Is there a more efficient way of dynamically modifying the components data? I believe deleting the columns one by one seems to be the main issue, considering that it doesn't take that long to populate the first "board".