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(dev): don't show a warning for connectRange #4440

Merged
merged 2 commits into from
Jun 23, 2020
Merged

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Jun 19, 2020

Summary

If a custom connectRange widget is used, the uiState for that widget would always show as "incorrect" and show the dev warning; while it wasn't needed

fixes #4437

Result

https://github.com/algolia/instantsearch.js/blob/master/src/widgets/range-input/range-input.js#L170 e.g. edits the $$type (see #4227), but that means that the base type was no longer accepted, which is fixed here

cc @yonguelink

https://github.com/algolia/instantsearch.js/blob/master/src/widgets/range-input/range-input.js#L170 e.g. edits the $$type (see #4227), but that means that the base type was no longer accepted, which is fixed here

fixes #4437 cc @yonguelink
@Haroenv Haroenv requested review from francoischalifour and a team June 19, 2020 07:19
@ghost ghost requested review from eunjae-lee and removed request for a team June 19, 2020 07:19
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 19, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 350e39e:

Sandbox Source
InstantSearch.js Configuration

Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

It looks good as long as it passes the tests.

Copy link
Member

@francoischalifour francoischalifour left a comment

Choose a reason for hiding this comment

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

Nice!

@Haroenv Haroenv merged commit eb8c8b3 into master Jun 23, 2020
@Haroenv Haroenv deleted the Haroenv-patch-1 branch June 23, 2020 16:21
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.

Creating a custom range facet with connectRange AND using routing fires an incorrect warning
3 participants