DEV Community

Discussion on: Managing Remote Data with SWR

Collapse
 
tlacalv profile image
Tlacaelel Leon Villaseñor

Maybe a little too late, I'm currently working on a project and looking to implement this approach to retrieve data. however, I already implemented the Auth side of the application using custom hooks and a context, is it necessary to try and implement SWR for that too?

Collapse
 
juliang profile image
Julian Garamendy

You can definitely have authentication handled separately.
You don't need to use SWR for everything. Your can start with 1 query.