re-frame

Jacob Emcken 2024-01-04T17:01:47.315879Z

I am wondering if it considered "bad practice" or a "code smell", when having an event that dispatches another event?

2024-01-21T19:24:12.391989Z

One common misconception that I would like to clarify is that subs and events are not functions, even though they may look like them. This misunderstanding sometimes makes you want to fire event from another event. I’m not sure about current version, but in older versions this might’ve introduce slight delays between events. But if it’s not the case and you sure, then it’s alright, like @p-himik said.

👍 1
p-himik 2024-01-04T17:07:30.236709Z

As long as you do it via :dispatch or some other effect and not via rf/dispatch or some other function, it's alright.

Jacob Emcken 2024-01-04T17:08:15.219989Z

Nice... then I think I am on the right track. Thanks 🙏

👍 1