A deep dive tutorial series on React,js Zustand - a State Management Library.
This video is about how to subscribe to a store in order to get updates of its states.
00:00 introduction
00:11 what does subscribe in Zustand mean?
01:09 begin coding
03:05 without subscribe and the problem
05:27 with subscribe
11:04 subscribeWithSelector Middleware
15:17 fireImmediately
17:21 the order of the middlewares
Github:
https://github.com/niftybytes4u/react...
(Please follow the commit history, each video is a commit. )