We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236c4af commit bd28da9Copy full SHA for bd28da9
src/react-script-hook/index.tsx
@@ -131,7 +131,7 @@ export default function useScript({
131
// but only applied when loading
132
if (status && status.loading) {
133
scriptEl.remove();
134
- delete exports.scripts[src];
+ delete scripts[src];
135
}
136
};
137
// 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