Skip to content
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

Only run Cloudinary loadScript once #2

Merged
merged 1 commit into from
Apr 23, 2020
Merged

Only run Cloudinary loadScript once #2

merged 1 commit into from
Apr 23, 2020

Conversation

dihmeetree
Copy link
Contributor

Adding an empty array to the useEffect function so it doesn't run on every re-render. This makes it so the useEffect is only run once.. when the user first loads the page or refreshes.

Adding an empty array to the useEffect function so it doesn't run on every re-render. This makes it so the useEffect is only run once.. when the user first loads the page or refreshes.
@fauna-brecht fauna-brecht merged commit 5084709 into fauna-labs:master Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants