일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- getUTCDate
- React 고급 안내서
- notFound()
- react
- React 공식문서
- React 18 Nextjs
- Next13
- react hook
- Nextjs React 18
- background tab
- Javascript
- Render Props
- background setttimeout
- context
- React 고급안내서
- background setInterval
- Babel
- codingtest
- next13 head
- react-helmet
- background: url
- Programmers
- RTK Query
- Nextjs
- React 18
- React API 참고서
- 고급안내서
- CSS
- React18
- hook
Archives
- Today
- Total
목록react/typescript (1)
akjfal
Cannot invoke an object which is possibly 'undefined'
에러 발생 코드 //useAlert.ts return [{sentence, isOpen}, {open, close}] //useLogin.ts const [alertData, alertAction] = useAlert(); ... alertAction.open("로그인 성공"); // error 발생 발생 에러 Cannot invoke an object which is possibly 'undefined'.ts(2722) Cannot invoke an object which is possibly 'undefined'.ts(2722) const alertAction: { sentence: any; isOpen: any; open?: undefined; close?: undefined; } | { open:..
react/typescript
2021. 1. 10. 22:20