Skip to content

Commit ce48faa

Browse files
committed
suppressions
1 parent e646175 commit ce48faa

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

packages/react-reconciler/src/ReactFiberClassUpdateQueue.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const CaptureUpdate = 3;
161161
let hasForceUpdate = false;
162162

163163
let didWarnUpdateInsideUpdate;
164-
let currentlyProcessingQueue;
164+
let currentlyProcessingQueue: ?SharedQueue<$FlowFixMe>;
165165
export let resetCurrentlyProcessingQueue: () => void;
166166
if (__DEV__) {
167167
didWarnUpdateInsideUpdate = false;
@@ -475,7 +475,6 @@ export function processUpdateQueue<State>(
475475
hasForceUpdate = false;
476476

477477
if (__DEV__) {
478-
// $FlowFixMe[escaped-generic] discovered when updating Flow
479478
currentlyProcessingQueue = queue.shared;
480479
}
481480

packages/react-reconciler/src/ReactFiberHooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export type UpdateQueue<S, A> = {
165165
};
166166

167167
let didWarnAboutMismatchedHooksForComponent;
168-
let didWarnUncachedGetSnapshot;
168+
let didWarnUncachedGetSnapshot: void | true;
169169
let didWarnAboutUseWrappedInTryCatch;
170170
if (__DEV__) {
171171
didWarnAboutMismatchedHooksForComponent = new Set<string | null>();

packages/react-refresh/src/ReactFreshRuntime.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,8 @@ export function createSignatureFunctionForTransform(): <T>(
642642
getCustomHooks?: () => Array<Function>,
643643
) => T | void {
644644
if (__DEV__) {
645-
let savedType;
646-
let hasCustomHooks;
645+
let savedType: mixed;
646+
let hasCustomHooks: boolean;
647647
let didCollectHooks = false;
648648
return function <T>(
649649
type: T,

packages/react-server/src/ReactFlightServerConfigStream.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export function processModelChunk(
126126
id: number,
127127
model: ReactModel,
128128
): Chunk {
129+
// $FlowFixMe[incompatible-type] stringify can return null
129130
const json: string = stringify(model, request.toJSON);
130131
const row = id.toString(16) + ':' + json + '\n';
131132
return stringToChunk(row);
@@ -146,6 +147,7 @@ export function processImportChunk(
146147
id: number,
147148
clientReferenceMetadata: ReactModel,
148149
): Chunk {
150+
// $FlowFixMe[incompatible-type] stringify can return null
149151
const json: string = stringify(clientReferenceMetadata);
150152
const row = serializeRowHeader('I', id) + json + '\n';
151153
return stringToChunk(row);

0 commit comments

Comments
 (0)