Skip to content

Commit bd28da9

Browse files
committed
Fix undefined exports issue
1 parent 236c4af commit bd28da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react-script-hook/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export default function useScript({
131131
// but only applied when loading
132132
if (status && status.loading) {
133133
scriptEl.remove();
134-
delete exports.scripts[src];
134+
delete scripts[src];
135135
}
136136
};
137137
// we need to ignore the attributes as they're a new object per call, so we'd never skip an effect call

0 commit comments

Comments
 (0)