Selaa lähdekoodia

limits and sort tunes

Ivan Asmer 3 vuotta sitten
vanhempi
commit
0baa284ee9
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/App.js

+ 1 - 1
src/App.js

@@ -266,7 +266,7 @@ const ModelView = ({model, models={}, options, components:Components={Search, Co
     const [count, setCount]   = useState(0)
 
     const [query,  setQuery]  = useState({})
-    const [cursorCalls,  setCursorCalls]  = useState({sort:[{}], skip: [0]/*, limit: [gridHeight/rowHeight]*/})
+    const [cursorCalls,  setCursorCalls]  = useState({sort:[{_id: -1}], skip: [0], limit: [40]/*, limit: [gridHeight/rowHeight]*/})
 
     const skip = cursorCalls.skip[0]