Can't dynamicly update options when use search function
Andrik264 opened this issue · 1 comments
Imagine you have 100.000 products and you have the PowerSelect to choose one or more of them. To make it easier to find the product you want there is search ability. But when you write any letter - the request is sent with page[size]: 100
(pagination).
So for the first request, you can see only the first 100 options which include the letter in the search box.
So I'm using the load-more
button in @afteroOptionsComponent
which is sending the request to the next 100 items and updating the options array.
So the issue is that the array of options is updating but the visible options are not.
Discovered that i can just use @registerAPI function, and search result push to the registeredAPI.options and registeredAPI.results