Skip to content

Commit

Permalink
Apply the props filter inside the this.throttledForceUpdate callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed Oct 8, 2018
1 parent ec80673 commit 08f27c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/src/higher-order/with-filters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default function withFilters( hookName ) {
this.namespace = uniqueId( 'core/with-filters/component-' );
this.throttledForceUpdate = debounce( () => {
this.Component = applyFilters( hookName, OriginalComponent );
this.ComponentProps = applyFilters( hookName + 'Props', props );
this.forceUpdate();
}, ANIMATION_FRAME_PERIOD );

Expand Down

0 comments on commit 08f27c3

Please sign in to comment.