From 38a83190d5569a3ce5face619da5defa85ae5fa2 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Thu, 20 Jun 2024 12:20:11 -0600 Subject: [PATCH] improve instructions --- exercises/04.router/01.problem.router/ui/index.js | 2 +- exercises/05.actions/03.problem.server/server/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/04.router/01.problem.router/ui/index.js b/exercises/04.router/01.problem.router/ui/index.js index 6a58a9b..0a8878d 100644 --- a/exercises/04.router/01.problem.router/ui/index.js +++ b/exercises/04.router/01.problem.router/ui/index.js @@ -35,7 +35,7 @@ function Root() { function navigate() { // 🐨 set the location to the nextLocation // 🐨 create a nextContentFetchPromise which is set to fetchContent(nextLocation) - // 🐨 add a .then handler to the fetch promise + // 🐨 add a .then handler to the fetch promise which accepts the response // - if replace is true, call window.history.replaceState({}, '', nextLocation) // - otherwise, call window.history.pushState({}, '', nextLocation) // - return the response diff --git a/exercises/05.actions/03.problem.server/server/app.js b/exercises/05.actions/03.problem.server/server/app.js index 2b38865..7baed3d 100644 --- a/exercises/05.actions/03.problem.server/server/app.js +++ b/exercises/05.actions/03.problem.server/server/app.js @@ -78,7 +78,7 @@ app.get('/rsc/:shipId?', async context => await renderApp(context)) // 4. get the formData object from the quest (💰 await context.req.formData()) // 5. decode the reply from the formData object (await decodeReply(formData, moduleBasePath)) // 6. call the action with the ...args -// 7. call renderApp with the res and the returnValue of the action +// 7. call renderApp with the context and the returnValue of the action app.get('/:shipId?', async context => { const html = await readFile('./public/index.html', 'utf8')