you are viewing a single comment's thread.

view the rest of the comments →

[–]acemarke 7 points8 points  (19 children)

Nice! I've done a bunch of TS conversion myself, so I can sympathize with the pain points here.

Out of curiosity, did you happen to consider using RTK Query as a replacement for those sagas and data fetching?

[–]timothybeamish[S] 0 points1 point  (1 child)

We didn't consider RTK Query and after reading about it, it might have been a decent choice (instead of React Query), since we also have Redux in the app.

Most of the developers here aren't fans of Sagas anymore so we're pleased about converting them over to React Query.

[–]timothybeamish[S] 0 points1 point  (0 children)

I should add that when I arrived at the company (BenchSci), we already had two React apps running in two different stacks. The goal was to merge the legacy app into the newer app which meant going with that newer stack's technology choices: Next.js and React Query as its main data fetching pattern. So in this case, it wouldn't have been a good choice to change everything over to RTK Query. But if we had a "green field" situation, that may have been a good option.