See here instead https://github.com/vsavkin/ngselectors
Say we have a store defined as follows:
export class Store {
Say we have a store defined as follows:
export class Store {
I had a lot of issues trying to get continuation-local-storage (cls) working on a hapi.js app with pm2 in cluster_mode. Long story short, my mistake was wrapping cls around my server.start() when I should have been running it in a request handler. Here is the code you should use to get all this working:
var cls = require('continuation-local-storage');
var ns = cls.createNamespace('mySession');
var Hapi = require('hapi');
var server = new Hapi.Server();
server.connection({ port: 80 });