Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ENTREGANDO UMA EXPERIÊNCIA MELHOR COM SWR
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Tailo Mateus Gonsalves
January 22, 2021
Programming
0
110
ENTREGANDO UMA EXPERIÊNCIA MELHOR COM SWR
Tailo Mateus Gonsalves
January 22, 2021
Tweet
Share
More Decks by Tailo Mateus Gonsalves
See All by Tailo Mateus Gonsalves
BATE PAPO SOBRE A VIDA, A CARREIRA E TUDO MAIS!
tailomateus
0
18
React components - Melhores práticas
tailomateus
0
22
Chapter Lead
tailomateus
0
32
Arquitetura_Front-end.pdf
tailomateus
0
120
Other Decks in Programming
See All in Programming
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
110
Windows on Ryzen and I
seosoft
0
290
Swift ConcurrencyでよりSwiftyに
yuukiw00w
0
270
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
550
Fundamentals of Software Engineering In the Age of AI
therealdanvega
1
250
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.3k
Docコメントで始める簡単ガードレール
keisukeikeda
1
120
CSC307 Lecture 14
javiergs
PRO
0
470
モダンOBSプラグイン開発
umireon
0
120
nilとは何か 〜interfaceの構造とnil!=nilから理解する〜
kuro_kurorrr
3
1.9k
エンジニアの「手元の自動化」を加速するn8n 2026.02.27
symy2co
0
160
[SF Ruby Feb'26] The Silicon Heel
palkan
0
100
Featured
See All Featured
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
72
The Curious Case for Waylosing
cassininazir
0
270
The Pragmatic Product Professional
lauravandoore
37
7.2k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Darren the Foodie - Storyboard
khoart
PRO
3
2.9k
The agentic SEO stack - context over prompts
schlessera
0
690
Balancing Empowerment & Direction
lara
5
940
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.4k
We Are The Robots
honzajavorek
0
200
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Google's AI Overviews - The New Search
badams
0
930
Transcript
Apresentação de Tailo Mateus Gonsalves ENTREGANDO UMA EXPERIÊNCIA MELHOR COM
SWR
Usa dados antigos enquanto avalia se tem novos dados
• Back-end agnostic • Fast page navigation • Revalidation on
focus • Smart error retry • React Suspense • SSR/React Native support
Mensagem de carregamento enquanto busca dados do servidor Mostrar os
dados em cache enquanto recupera novos dados da API Problema Solução
None
1. Construído com React Suspense 2. Permite buscar dados
const Page = React.lazy(() => import('./Page')); <Suspense fallback={<Spinner />}> <Page
/> </Suspense>
1. Construído com React Suspense 2. Permite buscar dados
import useSWR from 'swr' export function useFetch(url) { const {
data, error } = useSWR(url, async url => { const response = await api.get(url) return response.data; }) return { data, error } }
None
1 - Renderizado no servidor; 2 - Equipado com SWR.
Dados atualizados ao longo do tempo e das interações do usuário.
const Page = () => { const { data }
= useSWR<any>('/training', fetcher); return ( <Suspense fallback={<div>loading...</div>}> <Profile/> </Suspense> ) }
None