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

Function warning

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

Source from the content-addressed store, hash-verified

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

Callers 3

ifFunction · 0.85
verifyPlainObjectFunction · 0.85
verifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…