Meteor-Community-Packages / Meteor-Community-Packages/meteor-tabular

Table reloads and goes back to page 1 on data update

Open
#178 2 comments 0 reactions 0 assignees View on GitHub
needs reproduction potential bug
Dominant language
JavaScript
Stars
360
Forks
132
PR merge metrics
No merged PRs in 30d

Description

Hello,

We have encountered a strange problem where are using a Tabular table to represent a list of people who attended a meeting. So on the meeting template, there is a meeting object in the data context. Inside the meeting object is an array of objects containing the attendee ID's and if they attended the meeting or not. So we have a helper method dynamically building the selector for the table. Each row of the table is an Attendee object, and there's a button to say if they attended the meeting or not. When the button is clicked, we call a method that updates the meeting data on the server. This causes the meeting data to change, and via reactivity, the selector is reloaded, causing the table to reload and go back to page 1. This is annoying when the user wants to update several rows at once without having to navigate back to the correct page in the results each time. Is there anyway to tell tabular not to reload the data once it has been loaded (and explicitly ask it to reload when we add a new row?)?

Thanks so much for any input.

Contributor guide

Open the contributing guide

Research direction

Start with issue #178 and reproduce the reactive selector update described for a paginated Tabular table. Trace how meeting data changes trigger the table reload, then define completion as preserving the current page during row updates while still allowing an explicit reload when a new row is added.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.