Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Backend
/
Elysia
A plugin has a default local `onBeforeHandle` hook and an `/account` route. The parent us…
from Elysia
Elysia 1.4.30 / Bun 1.3.10 / TypeScript 6
intermediate
1 min
A plugin has a default local `onBeforeHandle` hook and an `/account` route. The parent uses the plugin, then adds `/health`. Which route inherits the hook?
Only `/account`, because it belongs to the plugin instance
Only `/health`, because it was registered later
Both routes, because `.use()` always makes hooks global
Neither route, because hooks cannot live in plugins
Check
Ask AI about this kata
Report an error
next kata
What statuses does this Elysia program print?
Predict the output
A new version is available
Reload