Nikola Đuza
Nikola Đuza
We can do this even with the [toggle functionality](https://github.com/renderedtext/render_async#toggle-event) Basically, you should be able to do the following: ```erb ``` And, then you can do: ```js const callbackToCallOnElementVisible = ()...
> If we do not specify interval the toggle event would not cause it to poll? Yes, the toggle feature can be used without polling. I tried what [I suggested...
Great suggestion @koenhandekyn, thanks for sharing this. If you're up for it, you can make a PR that adds this recipe to documentation :) Let me know in the comment...
Hey, @thiagorp, thanks for submitting the issue! The idea sounds interesting to me! You are right about the polling, it either goes on until you refresh the page, or you...
Hey, @benr75, thanks for the suggestion that you've been using! I think some people will find it useful until we get some solution on the way. BTW, for your sidenote...
> Maybe an easy solution would be an option to stop polling on an error status code? This sounds good, we could add an option to stop polling on specific...
It would be nice to provide some kind of an example of how to do this with the response of the polling request. I think we can't do it right...
Right, the idea itself sounds pretty complicated from what we have right now. I want to keep the issue open so it attracts new ideas we can have about this....
Hey, @mnort9! Thanks for submitting an issue, the idea sounds great. I was thinking of this some time ago myself but never wound up drafting a PR. Let me know...
Hey @chadwtaylor, thanks for submitting the issue! > Can't help but wonder if it's because the JS is dynamically added by the parent and then not firing because it has...