Browse Source

limits and sort tunes

Ivan Asmer 3 năm trước cách đây
mục cha
commit
0baa284ee9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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]