---
title: "Discussion on \"Mocking Error, Empty and Loading states with MSW\" | Hashnode"
description: "Discussion on \"Mocking Error, Empty and Loading states with MSW\". One of the less exciting things about being a Frontend Developer is having to handle error, empty and loading states. It may not be the most fun thing to do, but it's necessary in order to give your users the best experience possible. Thankfully, Moc..."
url: "https://hashnode.com/posts/mocking-error-empty-and-loading-states-with-msw/638f45c30e3e4ed64c2da7a7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mocking Error, Empty and Loading states with MSW](https://cathalmacdonnacha.com/mocking-error-empty-and-loading-states-with-msw?utm_source=hashnode&utm_medium=feed)

One of the less exciting things about being a Frontend Developer is having to handle error, empty and loading states. It may not be the most fun thing to do, but it's necessary in order to give your users the best experience possible. Thankfully, Moc...

Dec 6, 2022 · 7 min read · cathalmacdonnacha.com  
Updated Nov 27, 2024  
Read the article

-   [#msw](https://hashnode.com/tag/msw)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#testing](https://hashnode.com/tag/testing)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)

## Written by

[Cathal Mac Donnacha](https://hashnode.com/@cathalmacdonnacha)

@cathalmacdonnacha · Ireland 🇮🇪

  
[View profile](https://hashnode.com/@cathalmacdonnacha)

Follow me on my journey as I write about tech topics I face in my everyday life as a Frontend Developer 💻

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
