When I use a query as an Input to my module, and I go into that (variable) query from the module, there are a couple of options like success handlers. In essence, I've passed down a dynamic query and now want to extend on that behavior in another context.
In my experience, however, these success handlers, for example, don't have any effect. I am trying to attach certain behavior to the success handler, but it fails to do so.
Now, before you suggest to add this success handler to the original query, keep in mind that I want to be able to perform an action using the context I'm currently in.
Also, I noticed that the cache
option is not enabled in the case of a "nested query", but I would expect this to be enabled or at least explained why it's not.
I am trying to organize modules in order to save myself from repeating certain logic and maintaining a DRY setup as much as possible. I know you've adviced against nesting modules, but the alternative isn't much better.