File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11import { getCookie , isUndefined , storage } from '@guardian/libs' ;
2- import { useState } from 'react' ;
2+ import { useEffect , useState } from 'react' ;
33import { constructQuery } from '../lib/querystring' ;
44import { useIsInView } from '../lib/useIsInView' ;
55import { useOnce } from '../lib/useOnce' ;
@@ -369,7 +369,7 @@ const ShowSignInGateAuxia = ({
369369 threshold : 0 ,
370370 } ) ;
371371
372- useOnce ( ( ) => {
372+ useEffect ( ( ) => {
373373 if ( hasBeenSeen ) {
374374 void auxiaLogTreatmentInteraction (
375375 contributionsServiceUrl ,
@@ -406,7 +406,15 @@ const ShowSignInGateAuxia = ({
406406 // the tracking of the number of times the gate has been displayed
407407 incrementGateDisplayCount ( ) ;
408408 }
409- } , [ componentId , hasBeenSeen ] ) ;
409+ } , [
410+ componentId ,
411+ hasBeenSeen ,
412+ browserId ,
413+ contributionsServiceUrl ,
414+ renderingTarget ,
415+ treatmentId ,
416+ userTreatment ,
417+ ] ) ;
410418
411419 return (
412420 < div ref = { setNode } >
You can’t perform that action at this time.
0 commit comments