-
Notifications
You must be signed in to change notification settings - Fork 528
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
feat(instantsearch): allow the insights middleware to be added in answer to a server setting #5883
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit e10f7ea:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implementation seems correct, will approach once we're 100% sure this is the way we want to detect it
eb4fc4e
to
4afc579
Compare
4afc579
to
bccb6b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already good and works well as is, I left comments for improvement.
packages/instantsearch.js/src/middlewares/createInsightsMiddleware.ts
Outdated
Show resolved
Hide resolved
packages/instantsearch.js/src/lib/__tests__/InstantSearch-test.tsx
Outdated
Show resolved
Hide resolved
packages/instantsearch.js/src/lib/__tests__/InstantSearch-test.tsx
Outdated
Show resolved
Hide resolved
packages/instantsearch.js/src/lib/__tests__/InstantSearch-test.tsx
Outdated
Show resolved
Hide resolved
packages/instantsearch.js/src/lib/__tests__/InstantSearch-test.tsx
Outdated
Show resolved
Hide resolved
packages/instantsearch.js/src/lib/__tests__/InstantSearch-test.tsx
Outdated
Show resolved
Hide resolved
packages/instantsearch.js/src/lib/__tests__/InstantSearch-test.tsx
Outdated
Show resolved
Hide resolved
packages/instantsearch.js/src/lib/__tests__/InstantSearch-test.tsx
Outdated
Show resolved
Hide resolved
packages/instantsearch.js/src/lib/__tests__/InstantSearch-test.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Sarah Dayan <5370675+sarahdayan@users.noreply.github.com>
Summary
When
insights
is undefined, the Insights middleware can be initialized in answer to a server setting, received with the initial results.FX-2643