@@ -51,7 +51,7 @@ describe('useEffectEvent', () => {
5151 return < span prop = { props . text } /> ;
5252 }
5353
54- // @gate enableUseEventHook
54+ // @gate enableUseEffectEventHook
5555 it ( 'memoizes basic case correctly' , ( ) => {
5656 class IncrementButton extends React . PureComponent {
5757 increment = ( ) => {
@@ -117,7 +117,7 @@ describe('useEffectEvent', () => {
117117 ] ) ;
118118 } ) ;
119119
120- // @gate enableUseEventHook
120+ // @gate enableUseEffectEventHook
121121 it ( 'can be defined more than once' , ( ) => {
122122 class IncrementButton extends React . PureComponent {
123123 increment = ( ) => {
@@ -173,7 +173,7 @@ describe('useEffectEvent', () => {
173173 ] ) ;
174174 } ) ;
175175
176- // @gate enableUseEventHook
176+ // @gate enableUseEffectEventHook
177177 it ( 'does not preserve `this` in event functions' , ( ) => {
178178 class GreetButton extends React . PureComponent {
179179 greet = ( ) => {
@@ -222,7 +222,7 @@ describe('useEffectEvent', () => {
222222 ] ) ;
223223 } ) ;
224224
225- // @gate enableUseEventHook
225+ // @gate enableUseEffectEventHook
226226 it ( 'throws when called in render' , ( ) => {
227227 class IncrementButton extends React . PureComponent {
228228 increment = ( ) => {
@@ -259,7 +259,7 @@ describe('useEffectEvent', () => {
259259 expect ( Scheduler ) . toHaveYielded ( [ 'Count: 0' , 'Count: 0' ] ) ;
260260 } ) ;
261261
262- // @gate enableUseEventHook
262+ // @gate enableUseEffectEventHook
263263 it ( "useLayoutEffect shouldn't re-fire when event handlers change" , ( ) => {
264264 class IncrementButton extends React . PureComponent {
265265 increment = ( ) => {
@@ -349,7 +349,7 @@ describe('useEffectEvent', () => {
349349 ] ) ;
350350 } ) ;
351351
352- // @gate enableUseEventHook
352+ // @gate enableUseEffectEventHook
353353 it ( "useEffect shouldn't re-fire when event handlers change" , ( ) => {
354354 class IncrementButton extends React . PureComponent {
355355 increment = ( ) => {
@@ -438,7 +438,7 @@ describe('useEffectEvent', () => {
438438 ] ) ;
439439 } ) ;
440440
441- // @gate enableUseEventHook
441+ // @gate enableUseEffectEventHook
442442 it ( 'is stable in a custom hook' , ( ) => {
443443 class IncrementButton extends React . PureComponent {
444444 increment = ( ) => {
@@ -533,7 +533,7 @@ describe('useEffectEvent', () => {
533533 ] ) ;
534534 } ) ;
535535
536- // @gate enableUseEventHook
536+ // @gate enableUseEffectEventHook
537537 it ( 'is mutated before all other effects' , ( ) => {
538538 function Counter ( { value} ) {
539539 useInsertionEffect ( ( ) => {
@@ -557,7 +557,7 @@ describe('useEffectEvent', () => {
557557 expect ( Scheduler ) . toHaveYielded ( [ 'Effect value: 2' , 'Event value: 2' ] ) ;
558558 } ) ;
559559
560- // @gate enableUseEventHook
560+ // @gate enableUseEffectEventHook
561561 it ( "doesn't provide a stable identity" , ( ) => {
562562 function Counter ( { shouldRender, value} ) {
563563 const onClick = useEffectEvent ( ( ) => {
@@ -596,7 +596,7 @@ describe('useEffectEvent', () => {
596596 ] ) ;
597597 } ) ;
598598
599- // @gate enableUseEventHook
599+ // @gate enableUseEffectEventHook
600600 it ( 'event handlers always see the latest committed value' , async ( ) => {
601601 let committedEventHandler = null ;
602602
@@ -646,7 +646,7 @@ describe('useEffectEvent', () => {
646646 expect ( committedEventHandler ( ) ) . toBe ( 'Value seen by useEffectEvent: 2' ) ;
647647 } ) ;
648648
649- // @gate enableUseEventHook
649+ // @gate enableUseEffectEventHook
650650 it ( 'integration: implements docs chat room example' , ( ) => {
651651 function createConnection ( ) {
652652 let connectedCallback ;
@@ -735,7 +735,7 @@ describe('useEffectEvent', () => {
735735 expect ( Scheduler ) . toHaveYielded ( [ 'Connected! theme: dark' ] ) ;
736736 } ) ;
737737
738- // @gate enableUseEventHook
738+ // @gate enableUseEffectEventHook
739739 it ( 'integration: implements the docs logVisit example' , ( ) => {
740740 class AddToCartButton extends React . PureComponent {
741741 addToCart = ( ) => {
0 commit comments