You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I like the idea of this package a lot. Since I work on InstantSearch I noticed some thing you decided to do differently, so I'll note here what I noticed. Feel free to just close or take it into account.
algoliasearch is a peer dependency
This avoids you coupling with a certain version of the client, which is cool, but also has no real clear warning. I would suggest this instead:
<AlgoliaPlacessearchClient={algoliasearch(xxx)}/>
This will also make it easier for people who are using a custom client, or later a different major version of the client.
hitTransformer naming
In InstantSearch we call this transformItems. No big deal, but maybe you want to align on that
search only on second character
This seems to be done on purpose, however it surprised me. I searched a few times for single characters before realising only the second one was taken in account
Hi! I like the idea of this package a lot. Since I work on InstantSearch I noticed some thing you decided to do differently, so I'll note here what I noticed. Feel free to just close or take it into account.
algoliasearch
is a peer dependencyThis avoids you coupling with a certain version of the client, which is cool, but also has no real clear warning. I would suggest this instead:
This will also make it easier for people who are using a custom client, or later a different major version of the client.
hitTransformer
namingIn InstantSearch we call this
transformItems
. No big deal, but maybe you want to align on thatThis seems to be done on purpose, however it surprised me. I searched a few times for single characters before realising only the second one was taken in account
I like to try things out live when I see a package. You can add a folder in the project with an example (doesn't need to be more complex than https://codesandbox.io/s/bold-mccarthy-ljh22). Then you can link to https://codesandbox.io/s/github/tree/master/xxx-name-of-your-folder
I see you're using modern React API like hooks. I think that gives a nice API too:
React has a wrong peer dependencyHooks were introduced in 16.8.0, so that should be the peerDependency instead, I'll make a PR for that.EDIT: I misread 16.11.0 as 16.1.0Have a nice day!
The text was updated successfully, but these errors were encountered: