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

refactor(history): remove our mode when we handle history object from the history lib #1540

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

mthuret
Copy link
Contributor

@mthuret mthuret commented Nov 14, 2016

IS works with only two mode now: controlled or uncontrolled.
-> uncontrolled means that the state is handled by IS
-> controlled means that you need to handle the state on your side.

onStateChange can be now used individually.

@algobot
Copy link
Contributor

algobot commented Nov 14, 2016

By analyzing the blame information on this pull request, we identified @Morhaus, @bobylito and @vvo to be potential reviewers

@@ -76,7 +70,7 @@ describe('InstantSearch', () => {
<div />
</InstantSearch>
);
}).toThrowError('You must provide a `onStateChange` prop alongside the `state`, `createURL` props on <InstantSearch>');
Copy link
Contributor

@vvo vvo Nov 14, 2016

Choose a reason for hiding this comment

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

Side note: I do like to always denote any API entries with backticks to ease reading anywhere :p

@vvo
Copy link
Contributor

vvo commented Nov 14, 2016

2016-11-14-113927_262x99_scrot

soo good :D

… the history lib

BREAKING CHANGE:
- if you need to synchronize URL then you should provide your own way to do so using our onStateChange/state props. See our guide on the subject for more information
- onStateChange can now be used without having to store the IS state externally
Copy link
Contributor

@bobylito bobylito left a comment

Choose a reason for hiding this comment

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

LGTM :)

@vvo vvo merged commit ed2ae84 into v2 Nov 14, 2016
@vvo vvo deleted the refactor/remove-history branch November 14, 2016 15:56
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.

4 participants