@@ -253,7 +253,6 @@ export default function connectAdvanced(
253
253
const lastChildProps = useRef ( )
254
254
const lastWrapperProps = useRef ( wrapperProps )
255
255
const childPropsFromStoreUpdate = useRef ( )
256
- const renderIsScheduled = useRef ( false )
257
256
258
257
const actualChildProps = usePureOnlyMemo ( ( ) => {
259
258
// Tricky logic here:
@@ -283,7 +282,6 @@ export default function connectAdvanced(
283
282
// We want to capture the wrapper props and child props we used for later comparisons
284
283
lastWrapperProps . current = wrapperProps
285
284
lastChildProps . current = actualChildProps
286
- renderIsScheduled . current = false
287
285
288
286
// If the render was from a store update, clear out that reference and cascade the subscriber update
289
287
if ( childPropsFromStoreUpdate . current ) {
@@ -330,17 +328,14 @@ export default function connectAdvanced(
330
328
331
329
// If the child props haven't changed, nothing to do here - cascade the subscription update
332
330
if ( newChildProps === lastChildProps . current ) {
333
- if ( ! renderIsScheduled . current ) {
334
- notifyNestedSubs ( )
335
- }
331
+ notifyNestedSubs ( )
336
332
} else {
337
333
// Save references to the new child props. Note that we track the "child props from store update"
338
334
// as a ref instead of a useState/useReducer because we need a way to determine if that value has
339
335
// been processed. If this went into useState/useReducer, we couldn't clear out the value without
340
336
// forcing another re-render, which we don't want.
341
337
lastChildProps . current = newChildProps
342
338
childPropsFromStoreUpdate . current = newChildProps
343
- renderIsScheduled . current = true
344
339
345
340
// If the child props _did_ change (or we caught an error), this wrapper component needs to re-render
346
341
forceComponentUpdateDispatch ( {
0 commit comments