File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ export function createSelectorHook(context = ReactReduxContext): UseSelector {
149
149
latestWrappedSelectorRef . current = wrappedSelector
150
150
151
151
const cache = useMemo ( ( ) => {
152
- console . log ( 'Recreating cache' )
152
+ // console.log('Recreating cache')
153
153
const cache = createCache ( ( ) => {
154
154
// console.log('Wrapper cache called: ', store.getState())
155
155
//return latestWrappedSelectorRef.current(trackingNode.proxy as TState)
Original file line number Diff line number Diff line change @@ -47,17 +47,17 @@ function createListenerCollection() {
47
47
if ( listener . trigger == 'tracked' ) {
48
48
if ( listener . selectorCache ! . cache . needsRecalculation ( ) ) {
49
49
//console.log('Calling subscriber due to recalc need')
50
- console . log (
51
- 'Calling subscriber due to recalc. Revision before: ' ,
52
- $REVISION
53
- )
50
+ // console.log(
51
+ // 'Calling subscriber due to recalc. Revision before: ',
52
+ // $REVISION
53
+ // )
54
54
listener . callback ( )
55
55
//console.log('Revision after: ', $REVISION)
56
56
} else {
57
- console . log (
58
- 'Skipping subscriber, no recalc: ' ,
59
- listener . selectorCache
60
- )
57
+ // console.log(
58
+ // 'Skipping subscriber, no recalc: ',
59
+ // listener.selectorCache
60
+ // )
61
61
}
62
62
} else {
63
63
listener . callback ( )
@@ -169,7 +169,7 @@ export function createSubscription(
169
169
170
170
function notifyNestedSubs ( ) {
171
171
if ( store && trackingNode ) {
172
- console . log ( 'Updating node in notifyNestedSubs' )
172
+ // console.log('Updating node in notifyNestedSubs')
173
173
updateNode ( trackingNode , store . getState ( ) )
174
174
}
175
175
listeners . notify ( )
Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ describe('React', () => {
451
451
expect ( renderedItems . length ) . toEqual ( 2 )
452
452
} )
453
453
454
- it . only ( 'only re-runs selectors if the referenced fields actually change' , ( ) => {
454
+ it ( 'only re-runs selectors if the referenced fields actually change' , ( ) => {
455
455
interface StateType {
456
456
count1 : number
457
457
count2 : number
You can’t perform that action at this time.
0 commit comments