Skip to content

Commit

Permalink
remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed May 20, 2024
1 parent 894701f commit 844b223
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion exercises/05.actions/02.solution.client/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
1 change: 0 additions & 1 deletion exercises/05.actions/03.problem.server/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
1 change: 0 additions & 1 deletion exercises/05.actions/03.solution.server/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
1 change: 0 additions & 1 deletion exercises/05.actions/04.problem.revalidation/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
1 change: 0 additions & 1 deletion exercises/05.actions/04.solution.revalidation/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 844b223

Please sign in to comment.