Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- Can't resolve
- animation
- html
- camera access
- adb pair
- adb connect
- react-native
- Recoil
- Git
- camera permission
- 티스토리 성능
- npm package
- rolldown
- ffi-napi
- dvh
- Each child in a list should have a unique "key" prop.
- github pdf
- nextjs
- react-native-dotenv
- vercel git lfs
- Failed to compiled
- custom printing
- electron-packager
- github 100mb
- 이미지 데이터 타입
- silent printing
- ELECTRON
- github lfs
- device in use
- augmentedDevice
Archives
- Today
- Total
목록2023/04/06 (1)
Bleeding edge
state를 beforeunload의 함수 내부에서 localStorage로 저장하기
고민한 이유 Single Page Application을 만들다가, 서버에서 모든 Single Page Application에 대한 초기 정보를 저장하는 것이 너무 부담되어서, Local Storage에서 초기 State를 관리하기로 하였다. 이 문제를 해결하기 위해 만났던 문제들 nextjs에서 localStorage is not defined 이 문제는 nextjs에서는 window가 undefined인 순간이 있을 수 있는 nextjs에서 나올 수 있는 케이스로 해결 방법은 심플하다(단지 언제 undefined 인지 시점을 지정하는게 타이트할수록 번거로울 수 있다..) function App(){ if(typeof window==="undefined") return //...localStorage에..
Javascript/React & Next
2023. 4. 6. 18:17