I have a scenario to export a Grid to pdf using the GridPDFExport. What I am observing is that this fails when using the react Link with the error
Error: Invariant failed: You should not use <Link> outside a <Router>
What I notice is that this works well with an anchor but this is something I cannot use in my situation as it caused full page reloads on the web page itself. How can I handle this?
Thanks
Hi Thulani,
We already have logged issue for this problem, which is due to the fact that the GridPDFExport while exporting will render only the content wrapped within the component and since the Router is outside of it, the error will occur. You can follow the progress of the issue in the link below:
Meanwhile, you can use the PDFExport instead as shown in the following example: