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.

Are Components Reactive?

See original GitHub issue

The data results isn’t updating when using a reactive helper. Should this update the results reactively OR do i need to add a config option OR is this not supported?

/index.js

Template.templateName.onRendered(function() {
    this.autorun(function() {
            reactiveIndex.set(someIndex);
    }
})
Template.templateName.helpers({
currentIndex() {
    return reactiveIndex.get();
}
});

/index.html

{{#EasySearch.Each index=currentIndex}}
    <li>{{this}}</lI>
{{/EasySearch.Each}}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
zyonnetworkscommented, Nov 29, 2016

/packages/easysearch:components/lib/base.js

onCreated() {

        this.autorun(function() { // added autorun
            let index = this.getData().index,
                indexes = [index];
            ...
        } // added autorun
}

/packages/easysearch:components/lib/component-methods.js line 23

options = dict.get('searchOptions') || {}, //added || {}
0reactions
choncjcommented, May 29, 2017

@matteodem Thank you for the fast reply. I created a new issue #610

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the reactive component of a circuit? - Quora
A component is said to be reactive if it tries to resist a change in voltage or current in a circuit. The amount...
Read more >
Reactive component Definition & Meaning - Merriam-Webster
The meaning of REACTIVE COMPONENT is the component of an alternating current that has a phase difference of 90° with the electromotive force....
Read more >
Reactive Electronic Components and Phase Angle
Capacitors and inductors are “reactive” components which react to change. Unlike resistors, capacitors and inductors store and release ...
Read more >
Reactive Component - an overview | ScienceDirect Topics
The reactive component (or VAR) represents electromagnetic energy which circulates round the system and is a prerequisite of most forms of electromagnetic ...
Read more >
Reactive Component - Appbaseio Open Source
ReactiveComponent is a wrapper component that allows you to connect custom component(s) (passed as children) with the Reactivesearch ecosystem. Usage with ...
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