diff --git a/packages/react-reconciler/src/ReactFiberHooks.js b/packages/react-reconciler/src/ReactFiberHooks.js index 3fa4a9ed351c2..b3c4443b8590f 100644 --- a/packages/react-reconciler/src/ReactFiberHooks.js +++ b/packages/react-reconciler/src/ReactFiberHooks.js @@ -865,40 +865,8 @@ function useMutableSourceImpl( source: MutableSource, config: MutableSourceHookConfig, ): S { - if (__DEV__) { - if (typeof config !== 'object' || config === null) { - console.error( - 'Expected useMutableSource() second argument to be a config object. ' + - 'Instead received: %s.', - config === null ? 'null' : typeof config, - ); - } - } - const {getSnapshot, getVersion, subscribe} = config; - if (__DEV__) { - if ( - typeof getSnapshot !== 'function' || - typeof getVersion !== 'function' || - typeof subscribe !== 'function' - ) { - console.error( - 'Invalid useMutableSource() config specified. ' + - 'Config object should define getSnapshot, getVersion, and subscribe methods. ' + - 'See https://fb.me/useMutableSource for more information.', - ); - } - } - const version = getVersion(); - if (__DEV__) { - if (version == null) { - console.error( - 'useMutableSource() version should not be null or undefined.', - ); - } - } - const pendingExpirationTime = getMutableSourcePendingExpirationTime(source); let isSafeToReadFromSource = false;