PejmanNik / jikji

Effortless report generator and reporting tools with React and NodeJS
https://jikji.xyz
MIT License
45 stars 1 forks source link

Table Issue #35

Closed sharathm89 closed 3 months ago

sharathm89 commented 4 months ago

Please check the below image where table breaks in the loop and doesn't go for the next page.

Sample can be found here -> Sandbox Link

Screenshot 2024-02-29 at 7 29 53 PM
sharathm89 commented 4 months ago

@PejmanNik did you find time to look into it..

PejmanNik commented 3 months ago

It seems to be related to your data loading mechanism. I couldn't figure out why, but in the pagination phase, the data is not yet ready. I was able to resolve your issue by postponing the pagination. However, this is a hacky solution.

const TableDom = () => {
 const { release } = useLayoutSuspension('table-data');

 useEffect(() => {
  setTimeout(() => {
    release();
  }, 1);
  }, [release]);
sharathm89 commented 3 months ago

Perfect it works... Thank you