Skip to content
Gravity Tables
minor v4.1.5 · · 1 min read

Tables auto-refresh after Add Entry, your filters, intact

Submit a new entry through the popup and the table immediately re-applies your filters and reloads. No manual refresh. No filter reset. No lost place.

  • Tables now reload automatically after a successful Add Entry submission
  • Active filters, search terms, and sort order are preserved
  • Pagination position is maintained where possible
  • Fixed a syntax error in the popup auto-close cleanup

You added a new entry. The popup closed. The table didn’t update. You hit refresh. Your filter for “Active customers in February” was gone. You re-applied it. The new entry was now sitting somewhere in the list.

That’s not a bug, it’s a missing feature. 4.1.5 ships it.

What changed#

After a successful Add Entry submission:

  1. The popup closes (this was already working, after 4.1.3 and 4.1.4 fixed the close path)
  2. The table fires its own refresh handler, same code path as the manual refresh button
  3. The refresh reuses the current filter state held in the table’s reactive store
  4. The new row appears in its correct sorted/filtered position

If your “Active customers in February” filter is on, and you add an inactive customer for January, the new entry won’t show, because it shouldn’t, given the active filter. That’s the right behaviour.

State preservation#

The refresh respects:

  • Active column filters (date ranges, multi-selects, range sliders, text search)
  • Sort column and direction
  • Items-per-page setting
  • Selected rows (yes, your bulk selection survives the refresh)

It does not preserve:

  • Pagination position when the new entry would push your current view out of bounds (we go to page 1 in that case)
  • Inline edit state (an edit-in-progress is committed or discarded before refresh)

Combined with the totals row#

Read alongside 4.1.8’s totals and 4.1.7’s recalc, the workflow is now end-to-end seamless:

Click Add Entry → fill form → submit → popup closes → table refreshes with active filters → totals row updates with the new row included.

Zero page reloads. Zero filter resets. Zero context loss.

#auto-refresh#popup#state-preservation