135 subscribers
Go offline with the Player FM app!
Tanner Linsley Separates UI State And Server State
Manage episode 262344329 series 2530175
Tanner Linsley is the creator of react-table, react-charts, and react-query. Tanner also has a startup called nozzle.io where they track rankings in Google and do cool things around technical SEO.
A lot of Tanner's libraries were born out of necessity at nozzle. We often reach for abstractions that were built to solve problems that we don't have and that ends up creating awkward problems for us. We wind up with poor performance or a bigger bundle size than we need, so having a custom made solution can be a good thing.
Your UI state is not the same as your server state and they should be separate things. By keeping these types of state separated from each other you can simplify your app. Server state is different enough in structure, persistence strategy, consumption, and lifecycle to be managed in smarter systems that are configurable to an apps needs of data freshness.
Homework
- Take inventory of your state. What is UI state and what is Server state?
Resources
Guest: Tanner Linsley
- Twitter: @tannerlinsley
- Github: @tannerlinsley
Host: Kent C. Dodds
- Website: kentcdodds.com
- Twitter: @kentcdodds
- GitHub: @kentcdodds
- YouTube: Kent C. Dodds
- Epic React: epicreact.dev
115 episodes
Manage episode 262344329 series 2530175
Tanner Linsley is the creator of react-table, react-charts, and react-query. Tanner also has a startup called nozzle.io where they track rankings in Google and do cool things around technical SEO.
A lot of Tanner's libraries were born out of necessity at nozzle. We often reach for abstractions that were built to solve problems that we don't have and that ends up creating awkward problems for us. We wind up with poor performance or a bigger bundle size than we need, so having a custom made solution can be a good thing.
Your UI state is not the same as your server state and they should be separate things. By keeping these types of state separated from each other you can simplify your app. Server state is different enough in structure, persistence strategy, consumption, and lifecycle to be managed in smarter systems that are configurable to an apps needs of data freshness.
Homework
- Take inventory of your state. What is UI state and what is Server state?
Resources
Guest: Tanner Linsley
- Twitter: @tannerlinsley
- Github: @tannerlinsley
Host: Kent C. Dodds
- Website: kentcdodds.com
- Twitter: @kentcdodds
- GitHub: @kentcdodds
- YouTube: Kent C. Dodds
- Epic React: epicreact.dev
115 episodes
All episodes
×



1 Of Things Epic: The Principles Behind Great Decisions with Kent C. Dodds 13:14


1 Epic Image Optimization with Andre Landgraf 12:50


1 Building, Learning, and Networking with Jason Lengstorf at Epic Web Conf 18:02


1 Remix, React, and the Web Platform with Ryan Florence 22:58


1 JavaScript: The Origin Story with Annie Sexton 9:14


1 Epic Federation: Scaling Web Infrastructure with Zackary Jackson 16:11


1 Epic Bets: Practical Tips for Betting on Yourself with Aaron Francis 10:38


1 Shipping Reusable Full-Stack Components with Fran Zekan 14:50


1 Learning-Driven Development with Josh Cirre 16:52


1 Demystifying AI: Building an AI Assistant for Better Presentations with Kira Corbett 10:36


1 Building Connections and Community at Epic WebConf with Taylor Desseyn 11:51


1 Beyond Code Assist: Driving Impact as a Next-Gen Developer with Mark Techson 10:01


1 Building Accessible Web Apps with Shruti Kapoor 10:54


1 Building Bulletproof Design Systems with Eva Ferreira 10:11
Welcome to Player FM!
Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.