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
2020-10-09T21:34:49.060200Z

Is it bad practice to dispatch events from more namespaces than just the one views namespace?

p-himik 2020-10-09T21:38:21.060300Z

I don't think so.

Oliver George 2020-10-09T22:13:37.065700Z

Good separation of concerns can help keep you code maintainable. I try and avoid hard coding dispatches deep inside views. Better if those views take a callback prop and have no direct reframe ns use at all.

samedhi 2020-10-09T22:37:53.065900Z

Huh, I prefer to put the dispatch directly inline in the view component. Course, no rule is absolute, so I might sometimes build a generic component. I generally though feel that the loss of generalization is outweighed by the gains in being able to see exactly what the component does without outside context.

đź‘Ť 1
Oliver George 2020-10-09T22:38:51.066700Z

I’m sure that’s common.