({children = null})
| 69 | |
| 70 | // $FlowFixMe[missing-local-annot] |
| 71 | function ErrorOnUnmount({children = null}) { |
| 72 | useEffect(() => { |
| 73 | return () => { |
| 74 | console.error('This error fires on unmount'); |
| 75 | }; |
| 76 | }, []); |
| 77 | return children; |
| 78 | } |
| 79 | |
| 80 | // $FlowFixMe[missing-local-annot] |
| 81 | function ErrorAndWarningDuringRender({children = null}) { |