Fork me on GitHub
#re-frame
<
2019-12-18
>
sudakatux11:12:03

So i think im missing some essential part

sudakatux11:12:11

on a `

rf/reg-event-fx

sudakatux11:12:48

how does one consume a rf/reg-sub because ive been kind of repeating myself and i think there must be a way to select part of the state within a reg-event-fx withouth the need of drilling the db. Am i right?

sudakatux11:12:07

is there a way?

sudakatux12:12:16

haha yeah im doing it the wrong way not exactly since im passing all the data i need. just not doing it in the vent

sudakatux12:12:28

Thank u verry much

sudakatux12:12:36

So basically i need an external library?

p-himik12:12:56

Yep. Or just extract the functionality common to both the subscription and the event into some function and just use that function.

sudakatux12:12:40

Sorry didnt quite get that. So what im currently doing is in the component I subscribe to all the stuff i need and then i just dispatch that to the event

p-himik12:12:10

That works, too.