Update on this: I am now knee-deep into refactoring towards render props, and if
have this one big component (the main app screen) where it becomes really ugly,
especially because there is cascaded async loading of data, which also needs to
be user controlled.
/status/1418577489555767297
3 replies
I have the additional problem of wanting to provide an app for two different
backends, so custom hooks in UI components would not work (hooks are imported
from a static module).
Maybe: controller uses custom cloud specific hook and renders stateless UI
component.
That would let me encapsulate the business logic in hooks, and users who want to
customize the app only need to update the controller (and pull in their own UI
components)
I am going to try custom hooks instead of render props drilling...