Reputation: 812
As nodev4.2.1 is released and the domain is marked as the deprecated, so now I will require the alternative of it.
Earlier I used to store the request level variable in domain so that I can use those variables in the other processes of finding data within the same context of the request.
Is there any way where we can achieve it?
Note: I can not use request or response object to store my data.
Upvotes: 9
Views: 2831
Reputation: 1777
zone.js is something i believe can provide the solution: https://github.com/btford/zone.js/
it has much more capabilies
Upvotes: 2