From 844b223276b88d7d137ca6ac1f4f4e6a1ade2cb5 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Mon, 20 May 2024 14:19:55 -0600 Subject: [PATCH] remove unnecessary comment --- exercises/05.actions/02.solution.client/ui/index.js | 1 - exercises/05.actions/03.problem.server/ui/index.js | 1 - exercises/05.actions/03.solution.server/ui/index.js | 1 - exercises/05.actions/04.problem.revalidation/ui/index.js | 1 - exercises/05.actions/04.solution.revalidation/ui/index.js | 1 - exercises/05.actions/05.problem.history-revalidation/ui/index.js | 1 - .../05.actions/05.solution.history-revalidation/ui/index.js | 1 - 7 files changed, 7 deletions(-) diff --git a/exercises/05.actions/02.solution.client/ui/index.js b/exercises/05.actions/02.solution.client/ui/index.js index 8f9ff48..61ee6f7 100644 --- a/exercises/05.actions/02.solution.client/ui/index.js +++ b/exercises/05.actions/02.solution.client/ui/index.js @@ -28,7 +28,6 @@ function createFromFetch(fetchPromise) { } async function callServer(id, args) { - // using the global location to avoid a stale closure over the location const fetchPromise = fetch(`/action${getGlobalLocation()}`, { method: 'POST', headers: { 'rsc-action': id }, diff --git a/exercises/05.actions/03.problem.server/ui/index.js b/exercises/05.actions/03.problem.server/ui/index.js index d1b930d..15a730c 100644 --- a/exercises/05.actions/03.problem.server/ui/index.js +++ b/exercises/05.actions/03.problem.server/ui/index.js @@ -28,7 +28,6 @@ function createFromFetch(fetchPromise) { } async function callServer(id, args) { - // using the global location to avoid a stale closure over the location const fetchPromise = fetch(`/action${getGlobalLocation()}`, { method: 'POST', headers: { 'rsc-action': id }, diff --git a/exercises/05.actions/03.solution.server/ui/index.js b/exercises/05.actions/03.solution.server/ui/index.js index 75fa685..cfbe11e 100644 --- a/exercises/05.actions/03.solution.server/ui/index.js +++ b/exercises/05.actions/03.solution.server/ui/index.js @@ -28,7 +28,6 @@ function createFromFetch(fetchPromise) { } async function callServer(id, args) { - // using the global location to avoid a stale closure over the location const fetchPromise = fetch(`/action${getGlobalLocation()}`, { method: 'POST', headers: { 'rsc-action': id }, diff --git a/exercises/05.actions/04.problem.revalidation/ui/index.js b/exercises/05.actions/04.problem.revalidation/ui/index.js index 5b9abdd..a687b0e 100644 --- a/exercises/05.actions/04.problem.revalidation/ui/index.js +++ b/exercises/05.actions/04.problem.revalidation/ui/index.js @@ -34,7 +34,6 @@ function createFromFetch(fetchPromise) { } async function callServer(id, args) { - // using the global location to avoid a stale closure over the location const fetchPromise = fetch(`/action${getGlobalLocation()}`, { method: 'POST', headers: { 'rsc-action': id }, diff --git a/exercises/05.actions/04.solution.revalidation/ui/index.js b/exercises/05.actions/04.solution.revalidation/ui/index.js index e697978..b9dac53 100644 --- a/exercises/05.actions/04.solution.revalidation/ui/index.js +++ b/exercises/05.actions/04.solution.revalidation/ui/index.js @@ -32,7 +32,6 @@ function createFromFetch(fetchPromise) { } async function callServer(id, args) { - // using the global location to avoid a stale closure over the location const fetchPromise = fetch(`/action${getGlobalLocation()}`, { method: 'POST', headers: { 'rsc-action': id }, diff --git a/exercises/05.actions/05.problem.history-revalidation/ui/index.js b/exercises/05.actions/05.problem.history-revalidation/ui/index.js index ae34c0b..01a2730 100644 --- a/exercises/05.actions/05.problem.history-revalidation/ui/index.js +++ b/exercises/05.actions/05.problem.history-revalidation/ui/index.js @@ -32,7 +32,6 @@ function createFromFetch(fetchPromise) { } async function callServer(id, args) { - // using the global location to avoid a stale closure over the location const fetchPromise = fetch(`/action${getGlobalLocation()}`, { method: 'POST', headers: { 'rsc-action': id }, diff --git a/exercises/05.actions/05.solution.history-revalidation/ui/index.js b/exercises/05.actions/05.solution.history-revalidation/ui/index.js index 7f3f0ae..3c82755 100644 --- a/exercises/05.actions/05.solution.history-revalidation/ui/index.js +++ b/exercises/05.actions/05.solution.history-revalidation/ui/index.js @@ -32,7 +32,6 @@ function createFromFetch(fetchPromise) { } async function callServer(id, args) { - // using the global location to avoid a stale closure over the location const fetchPromise = fetch(`/action${getGlobalLocation()}`, { method: 'POST', headers: { 'rsc-action': id },