Jelajahi Sumber

limits and sort tunes

Ivan Asmer 3 tahun lalu
induk
melakukan
0baa284ee9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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]