We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b07ad commit 622aab6Copy full SHA for 622aab6
docs/how-to/middleware.md
@@ -687,9 +687,9 @@ const sharedDataContext = createContext<any>();
687
688
export const middleware: Route.MiddlewareFunction[] = [
689
async ({ request, context }, next) => {
690
- // Set data if it doens't exist
+ // Set data if it doesn't exist
691
// This will only run once for document requests
692
- // It will run twice (action request + loader request) in SPA navigations
+ // It will run twice (action request + loader request) in SPA submissions
693
if (!context.get(sharedDataContext)) {
694
context.set(
695
sharedDataContext,
0 commit comments