Set() usage in Zustand’s source code.
In this article, we will understand how Set() method is used in Zustand’s source code.
so the listeners in Zustand are basically a Set. The above code snippet is picked from vanilla.ts
Set
The Set object lets you store unique values of any type, whe...
thinkthroo.com3 min read