routing-controllers icon indicating copy to clipboard operation
routing-controllers copied to clipboard

Fix: koa-views always return the result of the first execution

Open nanyuantingfeng opened this issue 2 years ago • 3 comments

After the first rendering of html, all request results return the first rendered html;

The reason is that this.koa.use (FN) is called many times, resulting in subsequent requests going through the first registration FN; The closure variables(renderOptions) ref to the first FN`s renderOptions; Results in the return of the same html.

nanyuantingfeng avatar Sep 30 '21 03:09 nanyuantingfeng

could you deal with it earlier? @jvelo @fabiob @nolazybits @alexproca

nanyuantingfeng avatar Oct 13 '21 10:10 nanyuantingfeng

same problem

anthrax63 avatar Oct 20 '21 08:10 anthrax63

thank you But,The warehouse has not been updated

beclass avatar May 10 '22 13:05 beclass