Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IComputedOptions in createTransformer #224

Merged

Conversation

samdroid-apps
Copy link
Contributor

In the same vein as #215, it would be great to use a custom equals
function with createTransformer, to avoid bubbling bubbling recomputes
of transformers that return arrays/maps/etc.

This commit passes the options through to the internal computed. The
name option is not passed through, since that can be changed with
the debugNameGenerator option.

In the same vain as mobxjs#215, it would be great to use a custom equals
function with createTransformer, to avoid bubbling bubbling recomputes
of transformers that return arrays.

This commit passes the options through to the internal `computed`.  The
name option is not passed through, since that can be changed with
the `debugNameGenerator` option.
@coveralls
Copy link

coveralls commented Oct 23, 2019

Coverage Status

Coverage increased (+0.08%) to 93.684% when pulling a9bfa13 on samdroid-apps:support-computed-options-transformer into c0e5c93 on mobxjs:master.

Copy link
Contributor

@xaviergonz xaviergonz left a comment

Choose a reason for hiding this comment

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

LGTM

onCleanup?: (resultObject: B | undefined, sourceObject?: A) => void
debugNameGenerator?: (sourceObject?: A) => string
}
| Exclude<IComputedValueOptions<B>, "name">
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be Omit?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for seeing that - I've updated the PR.

@tristanisme
Copy link

Hullooo. Is this still going ahead?

@mweststrate
Copy link
Member

Released as 5.5.3

@xaviergonz
Copy link
Contributor

Shouldn't this PR be closed if it was merged and released? :)

@mweststrate
Copy link
Member

It should!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants