Skip to content

Commit ea6581b

Browse files
refactor(index): remove unnecessary page UI state reset branch (#4433)
1 parent ec27201 commit ea6581b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/widgets/index/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -442,15 +442,11 @@ const index = (props: IndexProps): Index => {
442442
// configuration of the widget is pushed in the URL. That's what we want to avoid.
443443
// https://github.com/algolia/instantsearch.js/pull/994/commits/4a672ae3fd78809e213de0368549ef12e9dc9454
444444
helper.on('change', event => {
445-
const { state, isPageReset } = event;
445+
const { state } = event;
446446

447447
// @ts-ignore _uiState comes from privateHelperSetState and thus isn't typed on the helper event
448448
const _uiState = event._uiState;
449449

450-
if (isPageReset) {
451-
localUiState.page = undefined;
452-
}
453-
454450
localUiState = getLocalWidgetsState(
455451
localWidgets,
456452
{

0 commit comments

Comments
 (0)