Last modified: 2014-10-31 21:32:20 UTC
There is an apiResponse field in View.php. Some of the contents come from renderApi (shared by the actual API). However, some are put directly there, which means the data is only available in the template if it's a server rendering. That in turn means the template output differs. This is a major problem (the architecture is built on the assumption that individual templates behave exactly the same on client and server), and causes bugs like bug 72655.
One approach to solve this is to have View call the actual API with a DerivativeRequest, and pass the API output directly to the template. However, there are other approaches that still solve this problem.
(In reply to Matthew Flaschen from comment #1) > One approach to solve this is to have View call the actual API with a > DerivativeRequest, and pass the API output directly to the template. We're going to try this approach.