i'm having real trouble constructing a meaningful MRE that isn't 80% of the app infra
Given the issue description, that sounds really suspicious - as if it's that infra that creates the erroneous behavior and not re-frame. :) Do what you can and send the link - I'll try to take a look when I have time.
the "need" to use subs inside of events has always seemed strange to me. what's wrong with just passing the result of those subscriptions as straight parameters to the event e.g. from the view?
if the subscription is just returning some calculation based on state, that calculation can easily be turned into a single reusable function that serve both purposes
3👍i don't think i've ever had a case where either the event dispatcher (typically a view) doesn't know everything the event handler needs, or the event handler can't derive it internally from app-db state
extracting the sub's work into a function seems like a straightforward approach to me
Mini-ANNC: I cleaned up my re-frame port of my https://kennytilton.github.io/whoishiring/ so that it no longer offends browser CORS protections loading local files. Might be of value to noobs as a relatively rich example app: https://github.com/kennytilton/rehiring. Reagent version is https://github.com/kennytilton/hiringagent, also updated to be CORS compliant. Hth!
2👍