Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Pass blacklist argument to hoist-non-react-statics using hoistStatics#632

Merged
wuct merged 1 commit intoacdlite:masterfrom
pex:add-blacklist-option-to-hoist-statics
Mar 26, 2018
Merged

Pass blacklist argument to hoist-non-react-statics using hoistStatics#632
wuct merged 1 commit intoacdlite:masterfrom
pex:add-blacklist-option-to-hoist-statics

Conversation

@pex
Copy link
Copy Markdown
Contributor

@pex pex commented Mar 26, 2018

hoist-non-react-statics supports an undocumented argument blacklist in order to blacklist static properties that shall not be copied.

This PR adds that option to recompose/hoistStatics.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #632 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #632   +/-   ##
=======================================
  Coverage   88.28%   88.28%           
=======================================
  Files          49       49           
  Lines         367      367           
=======================================
  Hits          324      324           
  Misses         43       43
Impacted Files Coverage Δ
src/packages/recompose/hoistStatics.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47f4794...ea27cfb. Read the comment docs.

@istarkov
Copy link
Copy Markdown
Contributor

Just curious is it possible to use hoist-non-react-statics instead of current implementation, may be we should deprecate current and recommend use 3rd party lib instead of trying to make current implementation similar to it. As it do one thing and do it well?

@istarkov
Copy link
Copy Markdown
Contributor

oops we already use it ;-)

@istarkov
Copy link
Copy Markdown
Contributor

@wuct I see nothing bad here

@wuct
Copy link
Copy Markdown
Contributor

wuct commented Mar 26, 2018

LGTM. Thank you!

@wuct wuct merged commit 7918e23 into acdlite:master Mar 26, 2018
@wuct
Copy link
Copy Markdown
Contributor

wuct commented Mar 26, 2018

@pex Can you kindly update the API doc as well?

@pex
Copy link
Copy Markdown
Contributor Author

pex commented Mar 28, 2018

@wuct sure, please check #635. Thanks again!

@pex pex deleted the add-blacklist-option-to-hoist-statics branch March 28, 2018 10:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants