re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
Jason 2020-09-23T02:14:21.000100Z

i'm having real trouble constructing a meaningful MRE that isn't 80% of the app infra

p-himik 2020-09-23T06:51:42.000300Z

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.

restenb 2020-09-23T08:51:14.000500Z

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?

restenb 2020-09-23T08:53:09.000700Z

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👍
restenb 2020-09-23T08:54:51.000900Z

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

2020-09-23T13:10:36.001200Z

extracting the sub's work into a function seems like a straightforward approach to me

kennytilton 2020-09-23T16:53:04.005500Z

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👍