MCPcopy
hub / github.com/reduxjs/redux / warning

Function warning

src/utils/warning.ts:6–18  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

4 * @param message The warning message.
5 */
6export default function warning(message: string): void {
7 /* eslint-disable no-console */
8 if (typeof console !== 'undefined' && typeof console.error === 'function') {
9 console.error(message)
10 }
11 /* eslint-enable no-console */
12 try {
13 // This error was thrown as a convenience so that if you enable
14 // "break on all exceptions" in your console,
15 // it would pause the execution at this line.
16 throw new Error(message)
17 } catch (e) {} // eslint-disable-line no-empty
18}

Callers 2

warning.spec.tsFile · 0.85
combineReducersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected