h3 deprecation warning
Closed this issue · 0 comments
Hebilicious commented
Environment
- Operating System: Darwin
- Node Version: v20.5.0
- Nuxt Version: 3.6.5
- Nitro Version: 2.5.2
- Package Manager: pnpm@8.6.10
- Builder: vite
- User Config: modules
- Runtime Modules: @hebilicious/form-actions-nuxt@0.2.1
- Build Modules: -
Reproduction
Using useFormAction
Describe the bug
When using useFormAction, a warning sometimes appears :
[h3] Implicit event handler conversion is deprecated. Use eventHandler() or fromNodeMiddleware() to define event handlers. 03:40:23
Handler: (event) => { 03:40:15
const action = Object.keys(getQuery$1(event))[0];
const handler = action ? actions[action] : Object.values(actions)[0];
return handler(event);
}
Additional context
No response
Logs
No response