Giter VIP home page Giter VIP logo

Comments (8)

joemcelroy avatar joemcelroy commented on June 11, 2024 1

Probably not. Its really just a standalone autocomplete. theres limited value on top if you're using your own UX.

from searchkit.

alessandrojcm avatar alessandrojcm commented on June 11, 2024

Ok so apparently my issue was that I was trying to use the autocomplete state instead of the hooks provided by react-instantsearch-hooks. Which bears the question, is it possible to use the autocomplete state directly? Forgive me if I am missing something, but I don't see what's the benefit of using the autocomplete.js library if all the state needs to be handled manually with the hooks.

from searchkit.

joemcelroy avatar joemcelroy commented on June 11, 2024

thanks for digging in further @alessandrojcm - The autocomplete js library is decoupled from instantsearch. Its by design so that even vue / angular implementations can use autocomplete.js library. So to update the state, its expected to use the framework specific instantsearch implementatiion. I agree it could be better. Hope that makes sense!

from searchkit.

alessandrojcm avatar alessandrojcm commented on June 11, 2024

Hey @joemcelroy thanks, yeah that makes sense. Another question tho, if I am custom rendering all the autocomplete output (ie using a component library) does it make sense to use autocomplete.js at all? Or just the hooks + my custom component will suffice?

from searchkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.