Dominik ๐ฎ
@TkDodo
Software Engineer โข Maintaining TanStack Query โข blog at https://t.co/tqjsQfLXIR โข Frontend Tech Lead @myadverity โข ReactJs โข TypeScript โข Father of two ๐งโ๐ฆ
ID:44217212
https://query.gg 02-06-2009 21:48:27
18,1K Tweets
37,3K Followers
382 Following
Tiger Abrodi tRPC.io ๐งโโ๏ธ Dominik ๐ฎ Alex / KATT ๐ฑ Because streaming the resulting html every request != streaming the js once and then only the data every request. There will always been an inflection point where one is more attractive for your applications performance/interactions than the other. Component dynamism,
How does TypeScript module augmentation work in a monorepo with a composite setup? We have one package A that augments a 3rd party definition (@tan_stack router in this case), but how would package B 'see' that augmentation if A already depends on B ๐ค
Based on Dominik ๐ฎ's article, here's how to create a reusable 'createZustandContext' function.
Just a sprinkling of generics, a bit of knowledge about Zustand's 'StoreApi' type, and you're good to go.
๐ Zustand and React Context - Dominik ๐ฎ
You'd get great benefits by putting your Zustand store in a React context:
- init store from props
- improved testability
- multiple local instances
100% agree with this article
twitter.com/TkDodo/status/โฆ