Swr: Does ZEIT use Redux?

Created on 25 Mar 2020  路  3Comments  路  Source: vercel/swr

Hello! Our team is in the early stage of the web app development and we adopted react/redux. We tried SWR on one page and it works great, much simpler that redux for API calls. Can you please share the experience, does ZEIT use Redux, or useSWR covers all cases?

Most helpful comment

No, we don't use redux or any state management libraries like redux at ZEIT. So far we've found SWR to be a reliable and much simpler alternative to remote data management across our dashboard.

We do use useReducer to minimize re-renders and manage complex state, though!

All 3 comments

@timurmaio Have you considered useReducer() as a simpler substitute for Redux? Commentary here: https://www.robinwieruch.de/redux-vs-usereducer

We're using it and finding it to have less boilerplate than "old" Redux (pre-hooks), but I haven't compared it to "new" Redux using all of its new hooks.

Mentioning @rauchg @pacocoursey @quietshu who could answer this better (btw would be great to have discussions enabled in this repo too 馃槈馃槈).

No, we don't use redux or any state management libraries like redux at ZEIT. So far we've found SWR to be a reliable and much simpler alternative to remote data management across our dashboard.

We do use useReducer to minimize re-renders and manage complex state, though!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bcomnes picture bcomnes  路  3Comments

Ephys picture Ephys  路  3Comments

polc picture polc  路  3Comments

bywo picture bywo  路  4Comments

AjaxSolutions picture AjaxSolutions  路  5Comments