I’m using POS UI’s PrintPreview component to render a pdf, and every time it downloads the same pdf twice with a small gap of seconds between repetitions.
I have make sure React is not performing double renders that trigger the component twice and I’m sure on our side we are not triggering the component more than once.
To reproduce, just put a PrintPreview component with a src pointing to a pdf file in an external server.
Is this a known, but undocumented issue on Shopify libraries?
HI Pablorc,
I’ve investigated internally and I wasn’t able to find any other reports of this happening - so I’m thinking this could be something related to your environment or app configuration.
Hey Liam,
Thank you for your response. I double-checked it and everything seems right. I even created a new extension from scratch with no state that just contains a PrintPreview component and the same behavior happens (my backend endpoint receives 6 requests to download the pdf, and it gets downloaded in the device’s memory twice).
I’m using a Samsung Galaxy with Androind 14 in my tests, but I get reports from users from something similar happening on different devices.
Hi Liam,
Are you only experiencing this on Android devices, or does this occur on iOS as well?
Victor
Hi Victor,
On iOS our client reports that numbers change, the backend receives 4 requests instead of 6 and the component shows the PDF without triggering downloads (or at least those do not appear on the notification bar).
Let me know if you need anything else.
Hi @pablorc and @Liam-Shopify ,
I just came across the same issue on Android. For testing purposes, I used a completely hardcoded screen with a dummy PDF to make sure that no react re-renders cause this. But the file is still downlaoded twice. I verified this both on the Android Emulator and on a physical device.
I can also verify that the backend route providing the PDF is hit several times. I am using POS extension version 2025-07.
Is there anything I can do about it? @pablorc Did you find a solution to this issue?
Best
Tobias
Hi @Tobias_Dierich ,
Unfortunately this was one of the last developments I had to do for that project and we had to leave it with the issue. We tried everything we could, but nothing fixed it. It seems a bug on Shopify’s libraries.
At that moment all those libraries were kinda new. It’s disappointing that after almost a year it is still broken.
Good luck!