Can this promise nesting be changed to chaining?
问题 This is the pseudo scenario | then (items) | then (items, actions) getItems() | getActions(for:items) | apply(actions -> items) :promise | :promise | model <= items | | :synchronous So in words: I need to get a list of global items. Fine. Items fetched. Make a request for actions that user has taken over previously fetched items. Fine. Actions fetched. Apply actions to items list. Put items on the model and display in view. This is somewhat the code I'm using return itemsResource .getItems