From 87170a8de34650df01b1b014882da3206cb2b365 Mon Sep 17 00:00:00 2001 From: Harish Krishnan Date: Thu, 16 Nov 2023 13:20:22 +0530 Subject: [PATCH 1/2] fix(docs): typo in qwik city -> middleware page --- packages/docs/src/routes/docs/(qwikcity)/middleware/index.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: From 4b2a2b6b71d07daa4eb279858d2e14357ae27f48 Mon Sep 17 00:00:00 2001 From: gioboa Date: Thu, 16 Nov 2023 15:51:41 +0100 Subject: [PATCH 2/2] =?UTF-8?q?linter=20=F0=9F=A7=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/routes/tutorial/events/synchronous/solution/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');