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

Function stringifyComponent

src/components/connect.tsx:48–54  ·  view source on GitHub ↗
(Comp: unknown)

Source from the content-addressed store, hash-verified

46// Attempts to stringify whatever not-really-a-component value we were given
47// for logging in an error message
48const stringifyComponent = (Comp: unknown) => {
49 try {
50 return JSON.stringify(Comp)
51 } catch (err) {
52 return String(Comp)
53 }
54}
55
56type EffectFunc = (...args: any[]) => void | ReturnType<React.EffectCallback>
57

Callers 1

connect.tsxFile · 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…