Closed Neobii closed 8 years ago
I found out that I called getComponentMethods
sometimes before the search input was loaded because they exist in different templates. I was expecting to get the results as if the user hasn't searched yet whether the search input has been loaded or not.
you need to put this code in to the onRendered
or onCreated
hook of a template.
I'm trying
var results = SearchIndex.getComponentMethods().getCursor().fetch();
and this error pops up
Exception in template helper: Error: Component with name '__default' not found [no-component]