Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

fix: avoid query when components are destroyed #359

Merged
merged 2 commits into from
Nov 15, 2017

Conversation

rayrutjes
Copy link
Member

Closes: #357

@@ -17,6 +17,8 @@ const addFacet = jest.fn();
const searchStore = {
getFacetValues,
addFacet,
stop: () => {},
Copy link
Contributor

Choose a reason for hiding this comment

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

can you jest.fn these so you test they get called correctly?

Copy link
Member Author

@rayrutjes rayrutjes Nov 13, 2017

Choose a reason for hiding this comment

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

just testing they got called adds nothing we would need to test they got called in order.

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.

LGTM then

@Haroenv
Copy link
Contributor

Haroenv commented Nov 15, 2017

can you fix the conflict @rayrutjes ?

@rayrutjes rayrutjes merged commit 644fc13 into master Nov 15, 2017
@rayrutjes rayrutjes deleted the stop-store-before-removing-facets branch November 15, 2017 10:57
Haroenv pushed a commit to algolia/instantsearch that referenced this pull request Dec 28, 2022
…ore-before-removing-facets

fix: avoid query when components are destroyed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants