Fork me on GitHub
#re-frame
<
2020-06-11
>
kirill.salykin11:06:25

Hi all, I have a next scenario: I need to show some overlay on error and hide it in 1 sec. It should be a one time thingy - I dont want to see this overlay next time when I come to this page again. Is there idiomatic way how to implement it? Sounds like effect to me, but it hard to access html and dom from effect (via normal way at least). Please advice, thanks!

p-himik11:06:38

Hiding in 1 second - use :dispatch-later effect. Not showing again - use some persistent storage, like LocalStore.