Fork me on GitHub

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!


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