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

fix(utils): only apply condition when specified #572

Merged
merged 1 commit into from Dec 11, 2019

Conversation

benjie
Copy link
Member

@benjie benjie commented Nov 28, 2019

We need to allow {allFoos(condition:{myCustomCondition: null}){...}} to trigger the condition callback (and it's up to that how to handle the null); however if the condition was not specified (e.g. {allFoos(condition:{}){...}}) then the callback should not be consulted.

This is technically a breaking change, but this plugin is still marked as experimental, so it only counts as a fix in this case.

@benjie benjie changed the base branch from master to v4-5 December 11, 2019 12:06
@benjie benjie merged commit 314fce1 into v4-5 Dec 11, 2019
@benjie benjie deleted the utils-condition-specified branch December 11, 2019 12:07
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.

None yet

1 participant