Skip to content

Commit

Permalink
Delete Server Context
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Feb 5, 2024
1 parent 95ec128 commit 5e21e5f
Show file tree
Hide file tree
Showing 47 changed files with 89 additions and 1,365 deletions.
6 changes: 0 additions & 6 deletions packages/react-client/src/ReactFlightClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ import {
REACT_POSTPONE_TYPE,
} from 'shared/ReactSymbols';

import {getOrCreateServerContext} from 'shared/ReactServerContextRegistry';

export type {CallServerCallback};

type UninitializedModel = string;
Expand Down Expand Up @@ -634,10 +632,6 @@ function parseModelString(
// Symbol
return Symbol.for(value.slice(2));
}
case 'P': {
// Server Context Provider
return getOrCreateServerContext(value.slice(2)).Provider;
}
case 'F': {
// Server Reference
const id = parseInt(value.slice(2), 16);
Expand Down
Loading

0 comments on commit 5e21e5f

Please sign in to comment.