Closed mirasusanna closed 1 year ago
If there's thousands of posts, it might be good to look for alternative to current PostControl
. I haven't looked too much into the efficiency of useSelect
, but it could be that trying to use thousands of posts is always going to be quite slow.
Some ideas that come to mind:
useSelect
supports search arg, but the API endpoints do, so this could at least work with apiFetch
useSelect
so it's not dependent on the fetched list of postsusePagedPosts
Using
useAllPosts
function can be extremely slow in case the site has a lot (thousands, in my case) of posts. It can take dozens of seconds to load everything.