News for hackers. Stuff that matters.
Re:Show HN: Searchkit – React components for elasticsearch by fleshweasel on Monday January 04, 2016 @01:09AM (#10834261)
I'm enthused, but would suggest you don't put an entry in the user's history for every keystroke in the search box.
Re:Show HN: Searchkit – React components for elasticsearch by fphilipe on Monday January 04, 2016 @03:45AM (#10834578)
Yes, this! People seem not to know when to use replaceState over pushState. And in my eyes this is a clear candidate for replaceState. (There are also examples the other way around, such as GitHub's PR tabs, drives me insane every time.)
Re:Show HN: Searchkit – React components for elasticsearch by joemcelroy on Monday January 04, 2016 @04:14AM (#10834641)
Yes! Thanks for noticing a side effect of the way we update our url. It should be replaceState for the search box. Other actions like pagination, applying filters and sorting should be pushState however.

We also throttle the searchbox search requests as you type.

Re:Show HN: Searchkit – React components for elasticsearch by ssetem on Monday January 04, 2016 @11:26AM (#10836431)
fixed now :), try the demo now http://searchkit.co
Re:Show HN: Searchkit – React components for elasticsearch by ssetem on Monday January 04, 2016 @06:19AM (#10834925)
thanks, will fix this today :D