I am using getData prop of the Table component to fetch data dynamically. However, it has a random behaviour and many times it is not called when the table is being rendered so it has not any data to show.
Example
io.display.table('Users', {
getData: fetchUsers
}),
fetchUsers() is not called
Solution
getData prop should be called each time the table is being rendered
I am using getData prop of the Table component to fetch data dynamically. However, it has a random behaviour and many times it is not called when the table is being rendered so it has not any data to show.
Example
fetchUsers()is not calledSolution
getData prop should be called each time the table is being rendered