Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
title layout
Hono Github Issue 3271

@hono/github/issue-3271

https://github.com/honojs/hono/issue/3271

Contents

Solution

Please check honojs/hono#3271 (comment) of solution being provided.

Not working

app.use(async (c,next) => {
  await sleep(1)// Anything that uses "await
  await next()
})

Working

app.use(async (_, next) => {
  await next()
  await sleep(1)
})

Setup

To clone:

git clone https://github.com/rjoydip/oss-issue-fix-collection.git
cd oss-issue-fix-collection/honojs/hono/github/3271

To install dependencies:

bun install

To run:

bun dev

Make a post request (Form urlencoded)

To test:

bun test