瀏覽代碼

limits and sort tunes

Ivan Asmer 3 年之前
父節點
當前提交
0baa284ee9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]