DEV Community

Discussion on: Testing a Generic Fetch Item List hook with Mock Service Worker

Collapse
 
kettanaito profile image
Artem Zakharchenko • Edited

Hey, Rex.

I wouldn't recommend using localStorage for global error handling but, in the end, it's your testing setup and you should evaluate what works best for you, taking benefits/trade-offs into consideration.

I've written a more detailed response to Guilherme above, let me know what you think about it.

Thank you once more for this fantastic article!