josepdecid liked a comment+100 XP
5mos ago
I set max level on every project... and I ignore error in rarely (very rarely) situations. I disagree with the suggestion of this video :/
josepdecid liked a comment+100 XP
5mos ago
@josepdecid yeah, all of the TanStack ecosystem is really, really nice.
josepdecid wrote a comment+100 XP
6mos ago
I can't recommend TanStack Query enough!
On top of all the benefits that @simonswiss commented regarding the easy handling of loading and errors, invalidation, caching... it's also super handy to use if we're using TS.
It has a very clever typing for the data-loading-error triad where, as an example it types data as undefined if loading is true or there are some errors. So if you try to access data before checking the loading state or presence of errors your IDE will raise some errors, catching many issues early in the development process!