React Zustand Tutorial - 3. selector and autogenerator (typescript)

preview_player
Показать описание
This video is about how to select states and how write a new autogenerator method to simplify the selection of a state.

Github for this tutorial:
(Please follow the commit history, each video is a commit. )

00:00 Introduction
00:14 A Problem and the selector
04:14 create a state Autogenerator
Рекомендации по теме
Комментарии
Автор

Thanks for going into more detail on these... At the end you said you can't get small cat because the auto selector just returns ".cat" -- how can you change this to also get the big & small cat values?

harag
Автор

Hey there I liked the video, but I need to ask. In the end you said, we learned why selectors and how to autogenerate. But why should I use autogenerate, if it won't let me in the further deps? It also seems to be just a bit 'shorter'. Would you give me an example how I could use it to ease a lot of store-states please? (:

FelixA-lq
Автор

every thing was good, until FIRST level selection limitation came across

Mrzi_aaa
Автор

But still my Cat controller rerendering

SR-zipw
join shbcf.ru