A projection that stores its latest state in memory so you can access it synchronously.
const projection = new InMemoryReduceProjection(nbMealsReducer); bus.onEvent((event) => projection.handleEvent(event)); const nbMeals = projection.getState();
Generated using TypeDoc
A projection that stores its latest state in memory so you can access it synchronously.
const projection = new InMemoryReduceProjection(nbMealsReducer); bus.onEvent((event) => projection.handleEvent(event)); const nbMeals = projection.getState();