diff --git a/packages/docs/src/routes/docs/(qwikcity)/middleware/index.mdx b/packages/docs/src/routes/docs/(qwikcity)/middleware/index.mdx index f2873acb8b2..e1da92a97dd 100644 --- a/packages/docs/src/routes/docs/(qwikcity)/middleware/index.mdx +++ b/packages/docs/src/routes/docs/(qwikcity)/middleware/index.mdx @@ -5,6 +5,7 @@ contributors: - manucorporat - mhevery - CoralWombat + - harishkrishnan24 --- import CodeSandbox from '../../../../components/code-sandbox/index.tsx'; @@ -47,7 +48,7 @@ Each middleware function is passed a [`RequestEvent`](#requestevent) object whic ## Order of invocation -The order middleware function chain is determined by their location. Starting from the topmost `layout.tsx` and ending at the `index.tsx` for a given route. (Same resolution logic as the order of layout and route component as defined by the route path.) +The order of middleware function chain is determined by their location. Starting from the topmost `layout.tsx` and ending at the `index.tsx` for a given route. (Same resolution logic as the order of layout and route component as defined by the route path.) For example, if the request is `/api/greet/` in the following folder structure, the invocation order is as follows: diff --git a/packages/docs/src/routes/tutorial/events/synchronous/solution/app.tsx b/packages/docs/src/routes/tutorial/events/synchronous/solution/app.tsx index 34a95852ea8..939c26316cb 100644 --- a/packages/docs/src/routes/tutorial/events/synchronous/solution/app.tsx +++ b/packages/docs/src/routes/tutorial/events/synchronous/solution/app.tsx @@ -2,7 +2,7 @@ import { component$, useVisibleTask$, useSignal } from '@builder.io/qwik'; export default component$(() => { const aHref = useSignal(); - useVisibleTask$(({cleanup}) => { + useVisibleTask$(({ cleanup }) => { const handler = (event: Event) => { event.preventDefault(); window.open('http://qwik.builder.io');