Skip to content

Commit 3d4f4d5

Browse files
authored
fix: remove default export (#6)
1 parent 14cb28d commit 3d4f4d5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.changeset/short-moles-taste.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'spin-delay': major
3+
---
4+
5+
We've to removed the default export. Please update your code to use the named
6+
export instead. This is a breaking change, but it's a minor one. Chances are
7+
that you're already using the named export, and you don't have to do anything.
8+
9+
```diff
10+
- import useSpinDelay from 'spin-delay';
11+
+ import { useSpinDelay } from 'spin-delay';
12+
```

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,3 @@ export function useSpinDelay(
5252

5353
return state === 'DISPLAY' || state === 'EXPIRE';
5454
}
55-
56-
export default useSpinDelay;

0 commit comments

Comments
 (0)