Skip to content

Commit

Permalink
Update packages/react/src/ReactServerContext.js
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Story <josh.c.story@gmail.com>
  • Loading branch information
sebmarkbage and gnoff committed Sep 28, 2023
1 parent e330ce6 commit 6b3290b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/react-client/src/__tests__/ReactFlight-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ describe('ReactFlight', () => {
}).toErrorDev(
'Server Context is deprecated and will soon be removed. ' +
'It was never documented and we have found it not to be useful ' +
'enough to warrant the downside it emposes on all apps.',
'enough to warrant the downside it imposes on all apps.',
{withoutStack: !withStack},
);
return ctx;
Expand Down
4 changes: 2 additions & 2 deletions packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3326,7 +3326,7 @@ describe('ReactDOMFizzServer', () => {
}).toErrorDev(
'Server Context is deprecated and will soon be removed. ' +
'It was never documented and we have found it not to be useful ' +
'enough to warrant the downside it emposes on all apps.',
'enough to warrant the downside it imposes on all apps.',
);
}
return ServerContext;
Expand Down Expand Up @@ -5617,7 +5617,7 @@ describe('ReactDOMFizzServer', () => {
}).toErrorDev(
'Server Context is deprecated and will soon be removed. ' +
'It was never documented and we have found it not to be useful ' +
'enough to warrant the downside it emposes on all apps.',
'enough to warrant the downside it imposes on all apps.',
{withoutStack: true},
);
function Client() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,10 @@ describe('ReactFlightDOMBrowser', () => {
[
'Server Context is deprecated and will soon be removed. ' +
'It was never documented and we have found it not to be useful ' +
'enough to warrant the downside it emposes on all apps.',
'enough to warrant the downside it imposes on all apps.',
'Server Context is deprecated and will soon be removed. ' +
'It was never documented and we have found it not to be useful ' +
'enough to warrant the downside it emposes on all apps.',
'enough to warrant the downside it imposes on all apps.',
],
{withoutStack: true},
);
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/ReactServerContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function createServerContext<T: ServerContextJSONValue>(
console.error(
'Server Context is deprecated and will soon be removed. ' +
'It was never documented and we have found it not to be useful ' +
'enough to warrant the downside it emposes on all apps.',
'enough to warrant the downside it imposes on all apps.',
);
}
let wasDefined = true;
Expand Down

0 comments on commit 6b3290b

Please sign in to comment.