DEV Community

Dominik D profile picture

Dominik D

404 bio not found

All 28 comments

Using WebSockets with React Query

That's right - you can do it with setQueriesData. I just mean...

2021 in Review

Thank you 🙏. All the best to you, too 🥳

About async functions

Just saw your edit and that’s incredible 🙌

About async functions

it's multiple things here really: 1) combining async/await wi...

About async functions

Thank you, happy that you like it :)

About async functions

The next example replaces throw with Promise.reject, both in ...

About async functions

Yep, it's definitely a stylistic thing from time to time. To ...

About async functions

good point. Am I right in thinking that it works with awaitin...

How can I ... ?

Thank you for the kind words 🙏. I agree that poorly formulate...

setState in useEffect loops the application

use react-query and you won't have that problem: react-query...

Popular patterns and anti-patterns with React Hooks

Good read! Question on number 2: Would we not want to keep th...

useState for one-time initializations

While possible, there is no lazy initializer for useRef. So i...

React Query Data Transformations

I generally agree, at least for public APIs. For enterprise a...

No love for boolean parameters

yes, passing the function is what is described in the inversi...

No love for boolean parameters

Definitely! I kinda omitted the fact that there are legit use...

No love for boolean parameters

very nice, ♥️ your series. Also very good concept of exceptio...

Interval fetching with react-query

Good use-case, thanks for the article. I'd still like to poin...

Things to know about useState

Not sure what you mean with that. Do you have an example mayb...

Exhaustive matching in TypeScript

Thank you, I'm glad that you liked it :)

Why I don't like reduce

yes, summing two numbers is a classical example for reduce. I...

The power of const assertions

Turns out I made an error regarding the casting-props example...

Putting props to useState

Is the benefit of going the modal route worth changing my UI...

Avoiding legacy systems

We have a rule to name branches with issue numbers and a prep...

Don't over useState

What we do is calling computeCategories in every render, whic...

Don't over useState

reselect works well if you need to select things from „outsid...

Don't over useState

categories is created new in every render cycle by computeCat...

Don't over useState

I don’t see why - quite the opposite actually. Before: initia...

Practical React Query

Glad you enjoyed it. I'm biased, but it's definitely worth to...

loading...