Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Extended diff option to allow for a custom differ function#241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
vdh wants to merge2 commits intoLogRocket:master
base:master
Choose a base branch
Loading
fromvdh:custom-differ

Conversation

@vdh
Copy link
Contributor

@vdhvdh commentedJun 9, 2017

I use Immutable.js alongside anImmutable.js Object Formatter Chrome Extension, and it would be great to be able to use a custom differ instead of needing to convert everything via thestateTransformer option.

MichaelBergquistSuarez reacted with thumbs up emoji
@codecov-io
Copy link

codecov-io commentedJun 9, 2017
edited
Loading

Codecov Report

Merging#241 intomaster willincrease coverage by0.22%.
The diff coverage is75%.

Impacted file tree graph

@@            Coverage Diff             @@##           master     #241      +/-   ##==========================================+ Coverage   83.56%   83.78%   +0.22%==========================================  Files           5        5                Lines         146      148       +2     ==========================================+ Hits          122      124       +2  Misses         24       24
Impacted FilesCoverage Δ
src/diff.js100% <100%> (ø)⬆️
src/core.js76.38% <50%> (+0.33%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update38d48a0...b1f3281. Read thecomment docs.

src/diff.js Outdated
exportdefaultfunctiondiffLogger(prevState,newState,logger,isCollapsed){
constdiff=differ(prevState,newState);
exportdefaultfunctiondiffLogger(prevState,newState,logger,isCollapsed,customDiffer){
constdiff=(customDiffer||differ)(prevState,newState);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybe you could usedefault paremeters.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@thiamsantos Yeah that makes sense ->b1f3281

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@thiamsantosthiamsantosthiamsantos left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@vdh@codecov-io@thiamsantos

[8]ページ先頭

©2009-2025 Movatter.jp