Fork me on GitHub
#re-frame
<
2022-08-30
>
fabrao17:08:46

Hello all, so re-frame in production, is that possible to access any information from the db-app?

p-himik18:08:24

If you mean getting the information from an already existing app, without implementing any facilities for it, then the answer is "no".

Daniel Craig18:08:40

But it's still probably not a good idea to store secrets there, from a security perspective

fabrao18:08:37

if you build re-frameapp for production, is that possible to get access to information from the internal re-frame database, as we see it in re-frame-10x?

p-himik18:08:37

Oh, of course. One can still inspect the memory. It's just that there's no direct way to do that, no "how to".

p-himik18:08:07

@U0YJJPFRA What exactly is your use-case? "Access information" is very vague.

fabrao18:08:54

the use case is that we have to clean the re-frame internal database after we do a logout?

p-himik18:08:12

Either refresh the page to truly clear every possible piece of state (it might also make it friendlier for some password managers, IIRC), or just make some event handler set your database value to the initial one.

fabrao18:08:15

"just make some event handler set your database value to the initial one." -> that is the response I wanted to know, thank you