I have made a custom-element to render a PDF page using pdfjs functions.
My model is a Dict of pdf documents where key is documentNumber, and value is (WebData PdfModel)
I render multiple pdfs on a single page, and line them up so that document-connectors in one document line up to the connector in another PDF-document.
I’m using elm-ui for everything exept the custom element.
Elm destroys my first custom element and rebuilds it when adding anything to the Dict.
( I have tried lazy and keyed on the viewfunction that renders a Dict value )
I want to prevent the pdf from beeing rebuilt/rerendered as this creates flickering and unwanted use of resources when clicking a link to the next drawing.
Any ideas how to prevent elm from destroying my custom-element on Dict inserts ?