({children = null})
| 56 | |
| 57 | // $FlowFixMe[missing-local-annot] |
| 58 | function ErrorOnUpdate({children = null}) { |
| 59 | const didMountRef = useRef(false); |
| 60 | useEffect(() => { |
| 61 | if (didMountRef.current) { |
| 62 | console.error('This error fires on every update'); |
| 63 | } else { |
| 64 | didMountRef.current = true; |
| 65 | } |
| 66 | }); |
| 67 | return children; |
| 68 | } |
| 69 | |
| 70 | // $FlowFixMe[missing-local-annot] |
| 71 | function ErrorOnUnmount({children = null}) { |