Skip to content

Commit 622aab6

Browse files
authored
Fix comment typos in middleware documentation
1 parent 79b07ad commit 622aab6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/how-to/middleware.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,9 +687,9 @@ const sharedDataContext = createContext<any>();
687687

688688
export const middleware: Route.MiddlewareFunction[] = [
689689
async ({ request, context }, next) => {
690-
// Set data if it doens't exist
690+
// Set data if it doesn't exist
691691
// This will only run once for document requests
692-
// It will run twice (action request + loader request) in SPA navigations
692+
// It will run twice (action request + loader request) in SPA submissions
693693
if (!context.get(sharedDataContext)) {
694694
context.set(
695695
sharedDataContext,

0 commit comments

Comments
 (0)