Reputation: 561
I know that this is a very basic question. But I couldn't find the answer by now. In my application, I will fetch some data as an array from my graphql server and directly render it using react-table. now I want to add a new row to this table. How should I do that? Thank you very much for your help
Upvotes: 2
Views: 1067
Reputation: 1242
data
object passed to useTable
(refetch data from graphql
server, triggering a useEffect
which fetches data or ...).data
(append).I think you should always keep the reference to the data
object.
Upvotes: 3