EdisonJpp / react-export-table-to-excel

It allows you to export an HTML table just by sending the table reference and the name with which you want the file to be saved. It gives you two options; a hook and a component ... you use whichever one best suits your goal
41 stars 12 forks source link

currentTableRef or tablePayload does not exist #13

Open Satya0421 opened 1 year ago

Satya0421 commented 1 year ago

currentTableRef or tablePayload does not exist,am getting this type of error.

ahmetilhann commented 1 year ago

I have same problem. It happens in some places. I didn't understand why.

wollanup commented 1 year ago

Same issue here, seems to happen only when my component with table inside is re-rendered (click a "Refresh" button). Maybe this info could help ?

EDIT :

Seems to work better with a onClick handler (here) than <DownloadTableExcel> component (here)

naftali-breuning commented 6 months ago

also getting this. works in my local environment though...