Stack: nextjs (yes, I'm using SSR), Hasura, reactjs
I have 2 pages, one of them queries and displays a table that contains users. Another page is for printing the said table using window.print()
.
So basically, the said 2 pages use the same data.
I am thinking of 2 ways to tackle this:
On the 2nd page, use the same query as I have on the first page (which sounds redundant and not efficient)
Pass the data from the 1st page on the 2nd page's URL (which is will make the URL dirty but it sounds faster)