Hey guys good day quick question does
Hey guys good day, quick question, does the Select component of Refine Mantine supports pagination ? I have connected the useSelect hook with the Select dropdown and set hasPagination to true with pageSize of 20 but I'm not seeing any events that could trigger a fetchMore event or something similar. I've been doing some search in the docs and via google but I couldn't find anything related
5 Replies
correct-apricot•2y ago
if i understand correctly, we have example for that.
https://github.com/refinedev/refine/blob/next/examples/field-antd-use-select-infinite/src/pages/posts/list.tsx#L39
antd and mantine useSelect are the exactly same
Hey, I am refine support bot :wave:. I am here to help you with your question. I searched for the answer to your question in the refine documentation and could not find an answer. Please wait for someone from the refine core team or the community to try to help you. 👊
unwilling-turquoise•2y ago
thank you @alicanerdurmaz ! I will see how to adapt this to mantine Select !! I was using the wrong words it seems as I didn't come up before with this example 😄
correct-apricot•2y ago
please let me know if something goes wrong 🙏
unwilling-turquoise•2y ago
I was able to get it to work by using a custom scroll area and using a similar code as the one in the example! It was a great guide on how to do it. The main difference is that the scroll functionality is not baked in the Mantine Select but using a custom DropdownItem gives access to scroll