gravity-ui / expresskit

MIT License
4 stars 2 forks source link

Expose `originalContext` as ro #3

Closed 3y3 closed 2 months ago

3y3 commented 1 year ago

RW originalContext is dangerous. Can we make it RO or (and) accessible by symbol?

resure commented 1 year ago

It's being used in app middlewares to set() some values to the root context keyvalue storage so it can be later retrieved in controllers. Setting that value in the local middleware context won't pass it to the controllers.