Fork me on GitHub
#re-frame
<
2022-11-25
>
rende1115:11:55

Hello! I need to get data from re-frame db outside of reactive contexts. I know about re-frame.db/app-db, it's ok? Or should I definitely not do that?

p-himik15:11:28

What exactly do you need the db value for?

rende1115:11:23

I wanna get some values from db and use them in internal app logic (handling websocket wessages)

p-himik15:11:02

That's a bit vague. But when you receive a WS message, you can simply dispatch some event and there you'll have access to the value of app-db. That's exactly what I do in my own projects.

rende1115:11:32

hmm yes, it will works)

rende1115:11:46

Thanks)

👍 1