Hi!
I’m using the great Aldeed:Tabular lib.
I have a selector()
helper on the client that returns a ReactiveDict of filters (as Mongo query Object)
selector(): {
return Template.instance().filters.all();
}
This works great when I’m filtering for just “if a value equals something” .
However, I’ve verified the Server’s changeSelector
md doesn’t get called when I have a more complex query.
i.e. foo:{$regex:/someregex/}
doesn’t get observed reactively on the server (but the client selector helper md does see the change)
I have a client event that sets the object above by doing the following.
template.filters.set(foo:{$regex:/someregex/});
I’m guessing this has something to do with how the ReactiveDict handles the “nested” object for the $regex
mongo part.
Any insights? Thanks!