Samuel
mozzius’ official guide for writing good react code: 1. use react query 2. see step 1
Deleted post
1 4
Samuel
@samuel.fm
if you haven’t tried react query PLEASE give it a try!! It’s not just for fetching stuff, it’s for dealing with ALL asynchronous state in a beautiful way. you will never write a useEffect again
1 2
Samuel
I have 12k LoC for Graysky and 24 useEffects, almost all of which are either syncing with external state, like messing with react navigation, or invalidating/setting the react query cache. zero fetches :) an old project from before I discovered RQ has almost twice as many useEffects per LoC
1