-
Notifications
You must be signed in to change notification settings - Fork 293
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
Tag Manager stuck in loading state when reloading edit settings page. #6464
Comments
The error is related to the
This side effect triggers an update to the tagmanager datastore which at that time is still empty. Because other functions which normally would trigger the site-kit-wp/assets/js/googlesitekit/data/create-settings-store.js Lines 251 to 261 in 5b0c5a9
Therefore the |
IB ✔️ |
QA Update: ✅@techanvil this is a great find! @mohitwp this is a good one to make a note of for when release testing. I'll add a test case for refreshing all settings. Verified:
tm-settings.mp4 |
Bug Description
When editing the Tag Manager settings, upon reloading the page, the Tag Manager section remains in the loading state.
This is because, for some reason, the Tag Manager's
ownerID
is not being set and this causes thehasModuleOwnershipOrAccess
selector to returnundefined
. This in turn is a condition for showing the<ProgressBar />
.Note, I also checked this scenario for Analytics but the problem did not occur.
Steps to reproduce
Screenshots
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
useGAPropertyIDEffect()
site-kit-wp/assets/js/modules/tagmanager/hooks/useGAPropertyIDEffect.js
Line 31 in 5b0c5a9
select( MODULES_TAGMANAGER ).getSettings()
useEffect
only call thesetGAPropertyID()
function if the tagmanger settings are not falsy.Test Coverage
useGAPropertyIDEffect.test.js
to verifysetGAPropertyID
is not called whenselect( MODULES_TAGMANAGER ).getSettings()
is falsy.QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: