Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: teardown happening during initial setup (#134)
## Description This fixes an issue that can occur if the AdvertisingProvider unmounts during the initial GPT setup. I've added a new state value (isInitialSetupComplete), which gets set when the setup completes and prevents `omponentWillUnmount` from calling the teardown function. This ensures we don't create a race condition between the setup and teardown, which can break the display ads. Co-authored-by: Stephen Gill <[email protected]>
- Loading branch information