I am using Algolia and the Instantsearch library in a Vue project, to search for items. The user has the option to check each item (with a simple checkbox). Checking at least one item makes a toolbar visible, with a selection of actions to be applied on the selected batch of items in the search results. When an search result item is checked, it fires a Vue method that pushes the item to a Vuex array called "selectedItems". In order not to lose this selection with pagination, I have gone for the infinite hits widget. Thus all results remain on the same page. Until here things work fine. My problem is that when the user clicks on the cross in the searchbox to reinitialise the search, then the items are not checked anymore, but obviously they remain within the "selectedItems" array in Vuex. How can I capture the event of the search re-initialising? If I can catch this event, I can then empty the "selectedItems" array so that it remains in sync with the search results. I have only found this resource that presents events like click, conversion, view: https://www.algolia.com/doc/guides/building-search-ui/going-further/send-insights-events/js/ But nothing about other events like re-initialize search. Thanks for any help!
How to catch event: re-initialise search in Algolia Instantsearch?
325 views Asked by jeff3546 At
0
There are 0 answers
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in ALGOLIA
- useInfiniteHits react-instantsearch-core how to simply resetpage?
- React InstantSearchNext, Next.js App Router
- Secured API Key not extending filter of it's parent API Key for User-restricted access
- How to build a full text semantic search engine using firestore in flutter
- Applying Multiple Refinements with One Button Click
- installing algolia plugin in medusajs backend store, gives an error
- Algolia InstantSearch Swift Package Manager throws Compile error
- Algolia Search Highlight in Tags not working NextJS
- Couldn't get all the text for System-Wide search functionality using algolia-search-plugin with gatsby
- How to do multiple search in react instanst search library?
- Getting `ReferenceError: body is not defined` even though I can see the body in console log
- Embed TypeScript project into JS one
- Making a nested Firestore collection full-text-searchable with Algolia
- How to stop AlgoliaSearchHelper .search() from revoking my numericRefinements
- Algolia Highlight function for search results doesn't work
Related Questions in INSTANTSEARCH
- Applying Multiple Refinements with One Button Click
- Algolia InstantSearch Swift Package Manager throws Compile error
- Embed TypeScript project into JS one
- How to stop AlgoliaSearchHelper .search() from revoking my numericRefinements
- Syncing URL with instantsearch using next.js adding one unnecessary re-route
- How to filter search results by path using Algolia?
- Algolia - how can i set uiState in another component
- Algolia React Autocomplete Creating a custom renderer
- Refinement list checked Filter Reset when Dialog modal is Closed
- ALGOLIA - Numeric Filters with OR conditio
- Algolia InstantSearch Hook - search for an array of objectIDs
- this.props.contextValue.store.getState is not a function when adding a custom input
- Adding attributes to search hits after query and dynamically re-render in InstantSearch.js
- "indexName is not valid" error in Algolia after Searchable attributes update
- Instant search , facetFilter does not work with tilder.(~)
Related Questions in VUE-INSTANT-SEARCH
- Using transform-items to order hits by date
- Meilisearch - Vue instantsearch limit search to one index
- Inserting HTML in a Vue instantsearch component
- Dynamically set vue instantsearch index-name
- Randomise Algolia Vue instantsearch search results except when searching
- Using a component inside vue ais-hits
- Algolia InstantSearchjs Vue dynamic widgets
- Algolia - how can i set uiState in another component
- "indexName is not valid" error in Algolia after Searchable attributes update
- Is it possible to filter my results by boolean and date? (algolia)
- How to achieve hierarchial filter in facets in typesense
- How to catch event: re-initialise search in Algolia Instantsearch?
- When querying multiple indices, how do I use different search parameters for each respective index in algolia? (Vue Instantsearch)
- vue-instantsearch not working in my VueJS 3.0 project
- ais-refinement-list in VueInstantSearch(Algolia) doesn't renders list
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)