Fork me on GitHub
#reagent
<
2023-06-05
>
Fredrik Andersson18:06:05

Hi, I'm using "qrcode.react": "^3.1.0" in order to render a QR code. It's a react component that I use like so

[:> qrcode/QRCodeCanvas qr-code])
the qr-code is subscribed from re-frame like this
(let [qr-code @(subscribe [:login-qr-code])
The qr-code is updated once every second. The problem I have is that the component doesn't seem to re-render when the code updates. It used to work before I started to implement re-frame. But I'm not sure if it's re-frame or the fact that I updated react to 18.2.0. Any ideas?

Fredrik Andersson18:06:11

i'm sorry, i finally realized that I needed to {:value qr-code}