question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

urlSync combined with specific searchFunction does not updates on first letter

See original GitHub issue

Do you want to request a feature or report a bug?

bug

Test case: https://jsfiddle.net/8bqdcrg3/8/, this console.log the location.href continuously.

Bug: What is the current behavior?

When using this searchFunction:

{
  searchFunction: function(helper) {
    var query = helper.state.query;
    // with this code the url is not updated on first letter
    // while the search is being done
    if (query === '') {
	    return;
    }
    helper.search();
  },
}

The urlSync will not be triggered for the first typed letter, but only at the second one.

Bug: What is the expected behavior?

urlSync must be triggered for the first letter

Bug: What browsers are impacted? Which versions?

all

Bug: What is the proposed solution?

I don’t know

What is the version you are using? Always use the latest one before opening a bug issue.

2/

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vvocommented, Oct 26, 2017

(I answered the underlying helpscout ticket)

0reactions
vvocommented, Oct 26, 2017

If it’s different then we should update the URL, otherwise we keep the same.

That should work indeed!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Couple of questions about urlSync (instantsearch.js)
I would like to completely redesign the URL design to something like betalist.com/jobs/$commitment-$query-in-$location (e.g. betalist.com/jobs/ ...
Read more >
Free Automated Malware Analysis Service - Hybrid Analysis
Submit malware for free analysis with Falcon Sandbox and Hybrid Analysis technology. Hybrid Analysis develops and licenses analysis tools to ...
Read more >
https://github.com/angular-ui/ui-router/issues/3273 - Plunker
You do not need to keep these states, nor any of the other boilerplate, if you do ... Each combination (2-tuple) of predicate...
Read more >
Best Apps for "Watching Offline" in News & Magazines
Ratings & Reviews · Apr 24, 2020. By A Google user. I've always watched France 24 news and thought I should try their...
Read more >
Бандерасын эхнэр өөрийгөө зэрэмдэглэжээ - Factnews.mn
His father not only kicked him out of the house at the age of 14 but also ... windows 8.1 update does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found