mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
Add flow suppression for Constant Condition rollout (#34243)
This commit is contained in:
@@ -81,6 +81,8 @@ export function register(name: string, callback: () => ViewConfig): string {
|
||||
typeof callback === 'function',
|
||||
'View config getter callback for component `%s` must be a function (received `%s`)',
|
||||
name,
|
||||
/* $FlowFixMe[invalid-compare] Error discovered during Constant Condition
|
||||
* roll out. See https://fburl.com/workplace/5whu3i34. */
|
||||
callback === null ? 'null' : typeof callback,
|
||||
);
|
||||
viewConfigCallbacks.set(name, callback);
|
||||
|
||||
Reference in New Issue
Block a user