Is there any problem storing `request` in AsyncLocalStorage? I'm looking for a quick and easy way to

Is there any problem storing request in AsyncLocalStorage? I'm looking for a quick and easy way to access request,
env
, context etc in various other functions/files. For example:
const asyncLocalStorage = new AsyncLocalStorage();
return asyncLocalStorage.run( { request, env, context, workerVersion }, async () => {
(...)
Was this page helpful?