O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Decode step

Within the route handler function, we initiate an XHR call to the Rest API endpoint, that will return the encoded data that represents the state we wish to maintain on the client side. Once the encoded data is obtained, we will perform the third step, Decode (depicted in Figure 6.1), of the isomorphic handoff procedure. In this step, we decode the encoded data back into an object instance. The object instance is then utilized to populate the corresponding field of the template data object that is passed to the Template Renderer (depicted in Figure 6.2), so that the web page can be successfully rendered on the client side, in the same manner as it was rendered on the server side.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required