Skip to content

Commit

Permalink
add loading state story
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangohjw committed Jan 9, 2025
1 parent d2e8134 commit 301c4e3
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,20 @@ export const Default: Story = {
},
}

export const Loading: Story = {
parameters: {
msw: {
handlers: [
http.get("https://jsonplaceholder.com/muis_prayers_time", () => {
return new Promise(() => {
// Never resolve the promise
})
}),
],
},
},
}

export const Error: Story = {
parameters: {
msw: {
Expand Down

0 comments on commit 301c4e3

Please sign in to comment.