Matt Crowder
4.3K posts


@bradwestfall @TkDodo @strippdev @titouancreach Putting it in the loader also risks blocking the page from rendering if the dev accidentally returns the promise
English

@TkDodo @strippdev @titouancreach Mostly agree with less use effect but I would say marking content as read is a valid "side effect of rendering". Plus loaders are ideally for data loading (GET) not mutations. I suppose you could use a client loader but it seems wrong
English
Matt Crowder retweetledi

@dillon_mulroy Someone has to… he went from being our baby to now just a dog after the kids
English

@dillon_mulroy Charlie just turned 7 too. Surprisingly no white on his face yet. Even with 2 kids 👀

English

@cassidoo Whoa I leave Twitter for years only to find out that Cassidoo is also a parent!
Congrats!
English

Does anyone have recommendations for ai code reviewers? I tried Code Rabbit AI on github.com/mcrowder65/ai-… and it’s obvious that it’s just running static analyzers.
English

@dillon_mulroy Not 32” but I recently switched to a 42” LG C3 and it’s been incredible 😀
English

@colbyfayock @danizeres We’re coming up on a year with this one:
a.co/d/aReaSq4
So far so good. Id recommend going up a size if you host a lot. We don’t really host so it’s fine.
English

@mattpocockuk I’ve been using a 42” LG C3 it’s been a game changer. 4k so 4 1080p monitors all on one screen. I like having my editor on the bottom was an ultra wide esque, and then splitting two windows on top.
English

@AndyManganelli Cool baby Andrew! I thought this was Jimmer Fredette at first glance!
English
Matt Crowder retweetledi

@jamonholmgren I started following you when I had 0. Now I have 2 😎
English
Matt Crowder retweetledi

The secret that most devs hate to admit is that code is a means to an end and ultimately quality doesn’t matter unless it gets in the way of turning a profit
Ask yourself if you’re more valuable if you refactor old code or if you create a new feature that makes more money
You might like to think that “refactoring code will make it easier to make more money!”
Sometimes that’s true, but most devs will use refactoring as an excuse because it’s much easier than creating something valuable
If you practice creating value over rewriting code, you will always be valuable
West Virginia, USA 🇺🇸 English

@housecor The annoying this is we have to save the query key so we don’t have to prop drill the query data down 8 layers 😢
So we have to save the query key into context.
English

How I use React query:
1. Create custom hooks that wrap related useQuery and useMutation calls.
2. Inline queryFn and mutationFn args. This enforces always using React query to query and mutate.
3. Colocate related queries and mutations in the same file, and invalidateQueries as part of the mutations.
4. Declare the keys at the top, so they can be reused in queries and mutations.
Example:

English
Matt Crowder retweetledi


















