Hi, I’m using Laravel & InstantSearch Js for my search.
I’m hoping for some help with something very common which is favouriting items in my search.
I’ve set up the backend of my website correctly for, ajax calls to be made to favourite or unfavorite an item in my search (which works) I just can’t visually display this to my users, they have to refresh the page entirely before it is indicated that the particular item has been favourited.
Once a user favourites a profile I’m trying to use ajax to retrieve the updated array of ids and then refresh the search but it appears that trying to call
search.refresh(); has no affect.
I’d really appreciate some help with this, maybe there is a better way than what I’m doing.
Thanks in advance for any help.