[Middleware] Confusion around onBeforeRequest hook - SolidJS