-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: pass previewUrlCallback function to the global scope #270
Conversation
src/uploader.js
Outdated
@@ -80,6 +84,7 @@ const useWidget = ( | |||
if (locale) delete window.UPLOADCARE_LOCALE | |||
if (localePluralize) delete window.UPLOADCARE_LOCALE_PLURALIZE | |||
if (localeTranslations) delete window.UPLOADCARE_LOCALE_TRANSLATIONS | |||
if (previewUrlCallback) delete window.UPLOADCARE_PREVIEW_URL_CALLBACK | |||
} | |||
}, [locale, localeTranslations, localePluralize]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use hook useCallback for set function in deps.
previewUrlCallback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😨 fixed
@shipjs prepare |
@nd0ut |
@shipjs prepare |
@nd0ut |
@shipjs prepare |
@nd0ut |
No description provided.