Back to Browse

React Candy Crush App | RTK (Redux) vs StateAdapt

272 views
Feb 20, 2023
1:35:55

StateAdapt had 4kB large bundle size than RTK, 42% less code, and 50% fewer imperative statements. Diff: https://github.com/mfp22/StateAdapt-React-Redux-CandyHunt/commit/d1cc3ef7e642fcc8bc3d03b9f226f1d7b8f81818 StateAdapt: https://github.com/state-adapt/state-adapt Redux Toolkit: https://redux-toolkit.js.org/ My Twitter: https://twitter.com/mfpears #stateadapt #redux #react 0:00 Intro 1:33 Cleaning existing code 9:25 Copilot being smart 9:45 Cleaning existing code 26:38 Restructuring state management 27:45 Adding StateAdapt 29:10 Trying to get Copilot to be smart 31:31 Converting board.slice to StateAdapt 33:33 Trying to get Copilot to be smart 35:30 Board state adapter 37:55 Copilot saving me time 38:22 More board slice 40:37 Copilot uses the cheat-sheet 41:45 More board slice 43:48 Board sources/store 46:50 Immer TypeScript 49:47 Selectors and useStore 52:36 Making things more reactive 1:01:29 More Immer learning 1:03:37 TypeScript inference performance 1:04:54 More reactive data flow 1:09:17 Testing and debugging 1:23:55 Comparing 1:29:51 Conclusion 1:33:52 Explaining the bug (don't JSON Element)

Download

0 formats

No download links available.

React Candy Crush App | RTK (Redux) vs StateAdapt | NatokHD