Meteor-Community-Packages / Meteor-Community-Packages/meteor-tabular
Reactivity of the table with a mongo view as collection
- Dominant language
- JavaScript
- Stars
- 360
- Forks
- 132
- PR merge metrics
- No merged PRs in 30d
Description
Hej hej! :0D
I hope you can help me.
I've set up a table that has a mongo view as the collection option.
All needed collection fields are either in the columns data or in extraFields...
My selector uses one of those fields to select the visible entries. I named this field 'hidden'...
For my example lets assume I have 2 entries in my list and change the hidden value of one of those to true.
Now it needs some seconds to switch the count from "Showing 1 to 2 of 2 entries" to "Showing 1 to 1 of 1 entries"... But the hidden entry stays visible until I change the values of the selector or the route of the program...
Have I done something wrong? Is it a bad idea to use views as collections? What else could I do to get merged data from multiple collections into a single table and keep the data sortable. :0D
Thank you in advance for your help,
desperately Robert
Contributor guide
Research direction
No source file or test is named. First reproduce the delayed filtering with a reactive table backed by a Mongo view, then inspect the table's selector and reactivity behavior alongside the collection update. Done means changing the hidden field promptly removes the row from the visible table while keeping the count and sorting correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, mongodb
- Domain
- databases, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100