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(searchbox): unmount component on dispose #3563

Merged
merged 1 commit into from
Mar 2, 2019

Conversation

francoischalifour
Copy link
Member

@francoischalifour francoischalifour commented Mar 1, 2019

The unmount function in the searchBox widget wasn't updated correctly since we moved the component to Preact.

This is a remaining of #3489.

The `unmount` function wasn't updated correctly since we moved the component to Preact.

This is a remaining of #3489.
@francoischalifour francoischalifour requested a review from a team March 1, 2019 16:15
@algobot
Copy link
Contributor

algobot commented Mar 1, 2019

Deploy preview for instantsearchjs ready!

Built with commit 25adf81

https://deploy-preview-3563--instantsearchjs.netlify.com

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

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

were the previous tests false positives?

@francoischalifour
Copy link
Member Author

@Haroenv There's never been any tests for the dispose step in any widgets. Definitely something to add in the future.

@francoischalifour francoischalifour merged commit c3f0435 into develop Mar 2, 2019
@francoischalifour francoischalifour deleted the fix/searchBox-unmount-fn branch March 2, 2019 07:57
francoischalifour added a commit that referenced this pull request Mar 18, 2019
## [3.2.1](v3.1.0...v3.2.1) (2019-03-18)

### Bug Fixes

* **connectToggleRefinement:** keep user provided, but falsy values ([#3526](#3526)) ([958a151](958a151))
* **instantsearch:** update usage errors ([#3543](#3543)) ([a2a800b](a2a800b))
* **panel:** append panel body as a child element ([#3561](#3561)) ([3de59a3](3de59a3))
* **poweredBy:** remove TypeScript extension in import ([#3530](#3530)) ([99ecc0b](99ecc0b)), closes [#3528](#3528)
* **release:** update doctoc script ([e07c654](e07c654))
* **searchbox:** unmount component on dispose ([#3563](#3563)) ([c3f0435](c3f0435))
* **searchBox:** add reusable SearchBox component ([#3489](#3489)) ([c073a9a](c073a9a))

### Features

* **panel:** implement collapsed feature ([#3575](#3575)) ([e84b02b](e84b02b))
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.

3 participants