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(www): make DebounceInput value externally controlled #9292

Merged
merged 2 commits into from
Oct 27, 2018

Conversation

Wattenberger
Copy link
Contributor

Fixes #9244
Makes DebounceInput's value externally controlled, which allows the parent component to change its value - eg. now we're clearing it on reset.

@Wattenberger Wattenberger requested a review from a team as a code owner October 22, 2018 13:47
Copy link
Contributor

@amberleyromo amberleyromo left a comment

Choose a reason for hiding this comment

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

LGTM

this.setInputValue(this.props.value)
}

componentDidUpdate(prevProps, prevState, shouldFireRouteUpdate) {
Copy link
Contributor

Choose a reason for hiding this comment

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

prevState and shouldFireRouteUpdate are unused - can we remove them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure thing!

@amberleyromo amberleyromo merged commit 24b5dc0 into master Oct 27, 2018
@jlengstorf jlengstorf deleted the www-fix-debounced-input branch November 1, 2018 00:35
jedrichards pushed a commit to jedrichards/gatsby that referenced this pull request Nov 1, 2018
* fix(www): make DebounceInput value externally controlled

* remove unused parameters from DebounceInput
gpetrioli pushed a commit to gpetrioli/gatsby that referenced this pull request Jan 22, 2019
* fix(www): make DebounceInput value externally controlled

* remove unused parameters from DebounceInput
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

3 participants