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.

Callback on Release called just once

See original GitHub issue

Hej there,

with your module it has been a pleasure to implement spotlight search 😃

When I built it the first time in Release mode I faced a surprise, though: Compared to Development mode, where it responds to multiple interactions, in Release it only reacts to the first user interaction.

I solved it by recursively listening for user taps, but I wonder whether that is a bug in your module, or a constraint by Apple.

While looking at your code I found something with an activity queue, so I assume your intention was to support multiple interactions. But here my Objective C skills end.

(react-native@0.33.1, react-native-spotlight-search@0.2.0)

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
jdmunrocommented, Oct 12, 2016

Thanks for reporting the issue!

Does this problem happen even in the example project I provided? I will try and take a look at this sometime this week 👍

0reactions
jdmunrocommented, Oct 12, 2016

Happy to help. Also happy to accept stickers ⭐️

If your project ends up on the App Store and you’re happy for it to be included, I can add it to a showcase in this repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyAudio callback being called only once - Stack Overflow
The midi stream works fine, but my audio stream only seems to call the callback once, right when the script is started (...
Read more >
JavaScript: What the heck is a Callback? | by Brandon Morelli
Simply put: A callback is a function that is to be executed after another function has finished executing — hence the name 'call...
Read more >
JavaScript Callback Functions – What are Callbacks in JS and ...
In JavaScript, the way to create a callback function is to pass it as a parameter to another function, and then to call...
Read more >
Reading 20: Callbacks and Graphical User Interfaces
Sometimes a callback function will be called only once (or at most once), as a response to a one-time request, as in this...
Read more >
Chromium Docs - OnceCallback<> and BindOnce ...
When you pass a base::{Once,Repeating}Callback object to a function ... When calling member functions, bound parameters just go after the object pointer.
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