Chapter 10. Handling server/browser differences

This chapter covers

  • Isolating environment-specific code
  • Enabling routes that are used on only the browser or the server
  • Using static methods to add headers and page metadata to each app route
  • Implementing consistent usage of a user agent between the server and the browser

This chapter and the next cover a variety of topics that will help you deal with real-world cases that I’ve run into when building isomorphic apps. As you embark on building a production-ready app, you’ll often run into use cases that need special handling within the context of this type of architecture. Table 10.1 lists examples of these kinds of situations.

Table 10.1. Common problems and solutions within an isomorphic ...

Get Isomorphic Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.