Skip to content

Commit

Permalink
fix: import index from its specific file
Browse files Browse the repository at this point in the history
This avoids side effects or other widgets being imported when only the InstantSearch component is imported.

fixes #6309
  • Loading branch information
Haroenv committed Aug 1, 2024
1 parent 86b33c6 commit 230391a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/instantsearch.js/src/lib/InstantSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
isMetadataEnabled,
} from '../middlewares/createMetadataMiddleware';
import { createRouterMiddleware } from '../middlewares/createRouterMiddleware';
import { index } from '../widgets';
import index from '../widgets/index/index';

import createHelpers from './createHelpers';
import {
Expand Down

0 comments on commit 230391a

Please sign in to comment.