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.)
[ Parent
| on HN ]
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.