Custom context methods are an important part of fluxapp, it allows us to bootstrap our application uniquely in different environments.

As an example, we created and published an isomorphic fetching module that proxies to jquery on the client side and hapi.js on the server side. this allows us to write code like the example below and have it run seamlessly in both environments.

// client side boostrap
var context = fluxApp.createContext({
  fetcher: fetcher('jquery')
});

// inside actions
fluxApp.registerActions('search', {
  search : function search(term) {
    return this.context.fetcher({
      url : '/api/search/' + term
    });
  }

});

👍

On to getPageContext(path, options)