Closed sean-perkins closed 5 years ago
Tracking an Android bug that is prominent on API 24 when unloading the PDF.
Cannot read property `cleanup` of undefined.
PDFApplication is disposed prior to the unload event being fired for older devices. Need to provide a safety check that it exists prior to calling:
https://github.com/TeamHive/pdf-viewer/blob/development/src/components/pdf-viewer/pdf-viewer.tsx#L92
Tracking an Android bug that is prominent on API 24 when unloading the PDF.
PDFApplication is disposed prior to the unload event being fired for older devices. Need to provide a safety check that it exists prior to calling:
https://github.com/TeamHive/pdf-viewer/blob/development/src/components/pdf-viewer/pdf-viewer.tsx#L92