Skip to content

Commit 0b653a3

Browse files
committed
Fix processing time that was always 0
1 parent d72e8d4 commit 0b653a3

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'
@@ -40,6 +41,7 @@ class App extends Component {
4041
indexName="steam-video-games"
4142
searchClient={searchClient}
4243
>
44+
<Stats />
4345
<div className="left-panel">
4446
<ClearRefinements />
4547
<h2>Genres</h2>

src/index.ts

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

0 commit comments

Comments
 (0)