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
- npm module
- typescript
- React
- Lottie web
- github login
- window.scrollY
- 백틱
- react-icons
- npm library
- useSWRImmutable
- useState
- useCallback()
- next.js
- useSwr
- es module
- nextauth
- flutter
- npm publish
- 템플릿 리터럴
- recoil
- Tailwind CSS
- svg style
- useQuery
- 웹 애니메이션
- 웹 디자인
- NEXT
- 동적 디자인
- CJS
- 마이크 권한 요청
- python
Archives
- Today
- Total
목록useSWRImmutable (1)
김재욱의 이모저모

넷플릭스를 내가 만들어야 한다고 생각하면 떠오르는 건 수많은 미디어들의 섬네일, 제목 등이 담긴 컴포넌트들이 가장 먼저 떠올랐다. 영상에 관한 정보들은 서버에 저장이 되어있을 것이고 나는 그러면 이 정보들을 서버에서 꺼내와서 활용해야 한다. 이를 지원하는 React Hooks로 useSWR이라는 swr전략 내의 함수가 존재한다. 아래는 swr에 대한 공식 문서이다. https://swr.vercel.app/ko 데이터 가져오기를 위한 React Hooks – SWR SWR is a React Hooks library for data fetching. SWR first returns the data from cache (stale), then sends the fetch request (revalidate..
Front-end
2023. 11. 7. 22:49