Fork me on GitHub
#re-frame
<
2023-06-23
>
scknkkrer22:06:55

Hello fellas, How can I run multiple re-frame instances in one runtime? I can elaborate the question: how can I isolate multiple sessions of re-frame events and subscriptions?

p-himik22:06:36

You can't since the queue and app-db are global. Two ways around it: • Add some key to each event and sub and partition app-db by that key • Use a fork of re-frame that allows such a workflow. There was at least one or maybe two of those

scknkkrer22:06:29

I approach on this like, isolating and it’s giving me the path of testing. I researched before how someone can test re-frame code-surfaces. I found something but I don’t believe they are async, so, it share some globals as you said too.

scknkkrer14:06:05

Thanks. :man-raising-hand::skin-tone-2: