Skip to content

Commit

Permalink
Merge pull request #60 from merge-api/ankit/update-broken-exports-ref
Browse files Browse the repository at this point in the history
Remove broken ref to exports when its just scripts
  • Loading branch information
ankitd33 authored Jan 21, 2025
2 parents 3c3ef56 + cb24599 commit 734ac83
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mergeapi/react-merge-link",
"version": "2.2.0",
"version": "2.2.1",
"description": "A React hook wrapper for Merge Link.",
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useScript.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export default function useScript({
// but only applied when loading
if (status && status.loading) {
scriptEl.remove();
delete exports.scripts[src];
delete scripts[src];
}
};
// we need to ignore the attributes as they're a new object per call, so we'd never skip an effect call
Expand Down

0 comments on commit 734ac83

Please sign in to comment.