Skip to content

[react-instantsearch-hooks] controlled mode #5314

Answered by louis030195
louis030195 asked this question in Q&A
Discussion options

You must be logged in to vote

Oops:

onStateChange={(searchState) => {
    setAlgoliaState(searchState);
}}

Should be

onStateChange={(searchState) => {
    setAlgoliaState(searchState.uiState);
}}

Problem solved

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by louis030195
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Library: React InstantSearch ≥ 7 Issues in any of the react-instantsearch@7 packages (formerly named react-instantsearch-hooks)
1 participant