Fork me on GitHub
#reagent
<
2018-01-03
>
ejelome16:01:39

Found the solution for this problem. Here's the updated gist: https://gist.github.com/ejelome/135d0c5f0e6137310ccfcfd24952f3f2/revisions The solution was to also treat the params as part of the state. Hope this also helps people with similar problem, just in case.

sb19:01:07

Somebody used doc/pdf/docx viewer? as eg. first page screenshot or full load? in reagent/re-frame? what do you would like to advice to use?

justinlee20:01:36

@sb you mean an in-browser pdf or word renderer?

sb20:01:14

@lee.justin.m yes, I would like add a viewer in browser (like in slack)

justinlee20:01:02

The best in-browser PDF renderer is pdf.js (a mozilla project). It is a bit complex to use. If you want to have control over it, you need to use reagent to render a canvas, then use the lifecycle hooks to point pdf.js to the canvas. I don’t know of any word in-browser renderers.

sb20:01:51

thanks! yes I would like to check what is possible really

danielglauser21:01:02

May not meet your needs but I just render the PDF in an iframe and let the browser plugin do the work.