# Announcing SWR 2.0 – SWR

> Clean Markdown view of GeekNews topic #8000. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=8000](https://news.hada.io/topic?id=8000)
- GeekNews Markdown: [https://news.hada.io/topic/8000.md](https://news.hada.io/topic/8000.md)
- Type: news
- Author: [ragingwind](https://news.hada.io/@ragingwind)
- Published: 2022-12-10T10:48:36+09:00
- Updated: 2022-12-10T10:48:36+09:00
- Original source: [swr.vercel.app](https://swr.vercel.app/blog/swr-v2#isloading)
- Points: 8
- Comments: 0

## Topic Body

- useSWRMutation: 기존 mutate() 대신 trigger() 를 통하여 mutation 을 실행  
- Optimistic UI: optimisticData 옵션을 사용해서 서버 응답전에 완료를 가정(낙관)하고 데이터를 UI 반영  
- mutate: 글로벌 mutate() 는 필터를 적용하여 특정키의 캐쉬데이터를 업데이트 가능  
- SWR DevTools 지원  
- Preloading Data: preload() 를 사용하여 초기에 데이터를 가져와서 사용할 수 있음  
- isLoading: useSWR() 은 새로운 isLoading 상태를 리턴, 데이터가 준비여부를 확인가능  
- Preserving Previous State: keepPreviousData 을 사용하여 이전 데이터 초기화 없이 데이터 fetch 가능 (기존리스트의 데이터가 업데이트 전 까지 유지됨)  
- Extending Configurations: SWRConfig 가 함수 리턴을 지원

## Comments



_No public comments on this page._
