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 3, 2024
1 parent 0762c49 commit bd41955
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 bd41955

Please sign in to comment.