Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Co-authored-by: Houssein Djirdeh <houssein.djirdeh@gmail.com>
  • Loading branch information
SukkaW and housseindjirdeh committed Sep 1, 2022
1 parent 908fe11 commit 0ac63c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/client/script.tsx
Expand Up @@ -179,7 +179,7 @@ function Script(props: ScriptProps): JSX.Element | null {
/**
* - First mount:
* 1. The useEffect for onReady executes
* 2. hasOnReadyEffectCalled.current is false, but the script hasn't loadeded yet (not in LoadCache)
* 2. hasOnReadyEffectCalled.current is false, but the script hasn't loaded yet (not in LoadCache)
* onReady is skipped, set hasOnReadyEffectCalled.current to true
* 3. The useEffect for loadScript executes
* Once the script is loaded, the onReady will be called by then
Expand Down

0 comments on commit 0ac63c1

Please sign in to comment.