interval / interval-node

The official Interval SDK for Node.
https://interval.com/docs
121 stars 13 forks source link

Table's getData prop is not called at the begining #23

Open alejo-acevedo-deel opened 1 year ago

alejo-acevedo-deel commented 1 year ago

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