Skip to content

Commit 23353ef

Browse files
bors[bot]bidoubiwa
andauthored
Merge #323
323: Fix processing time that was always 0 in Stats widget r=bidoubiwa a=bidoubiwa Processing time provided to instantSearch was badly formatted, as instantSearch expects `processingTimeMS` and we provided `processingTimeMs` as per MeiliSearch naming in its response. Co-authored-by: Charlotte Vermandel <[email protected]>
2 parents 7c558c2 + 0b653a3 commit 23353ef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

playgrounds/react/src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
ClearRefinements,
1010
RefinementList,
1111
Configure,
12+
Stats,
1213
} from 'react-instantsearch-dom'
1314
import './App.css'
1415
import { instantMeiliSearch } from '../../../src/index'
@@ -41,6 +42,7 @@ class App extends Component {
4142
indexName="steam-video-games"
4243
searchClient={searchClient}
4344
>
45+
<Stats />
4446
<div className="left-panel">
4547
<ClearRefinements />
4648
<h2>Genres</h2>

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function instantMeiliSearch(
131131
...(exhaustiveFacetsCount && { exhaustiveFacetsCount }),
132132
exhaustiveNbHits,
133133
nbHits,
134-
processingTimeMs,
134+
processingTimeMS: processingTimeMs,
135135
query,
136136
...(pagination && pagination),
137137
hits: ISHits, // Apply pagination + highlight

0 commit comments

Comments
 (0)