Repository navigation
v2.0.0-beta.4
Pre-release
Pre-release
·
275 commits
to main
since this release
Minor Changes
-
#42
3e0c861Thanks @Psvensso! -onSaveDraftscan save part of the draft store. Closes #33.- The payload keys are renamed:
rowsis nowupdated,addedis now
created,deletedis unchanged. The old names are still filled and are
deprecated; they are removed in a later beta. - Returning
{ updated, created, deleted }fromonSaveDraftskeeps the ids
reportedfalseand clears the rest. Each key takesfalsefor the whole
bucket or a map of id to result; an id the map does not name saved. A kept
row stays committed, so the nextsaveDrafts()retries it, and
saveDrafts()resolvesfalsewhen anything was kept. Returning nothing
saves everything and throwing saves nothing, both unchanged. - Body rows and entry rows carry
data-draftwhile committed into the draft
store.data-dirtycontinues to mark any row with values typed in. saveDrafts()called while a save is in flight joins it instead of sending
the same payload again. Previously a double-clicked Save could create every
pending entry row twice.
- The payload keys are renamed:
Patch Changes
-
#40
dc3aac9Thanks @Psvensso! - Fixed: a controlledstateslice built inline in the render body caused an
infinite render loop. TanStack comparesoptions.stateslices by identity on
every render; the grid now forwards the previous render's value for a slice
whose contents are unchanged.- A controlled slice passed without its
onXChangelogs a console warning in
development. Without the callback the slice cannot change; use
initialStatefor a starting value. - A controlled
columnVisibilityno longer hides the generated columns. The
tree column's entry is managed by the grid and followsgrouping. - The tree column's visibility entry is seeded into an external
atoms.columnVisibilityat mount. Previously the tree column rendered empty
in an ungrouped grid when an atom owned the slice. - A
statekey set toundefinedis ignored instead of being written into
the table state. Datevalues in controlled state compare by time.
- A controlled slice passed without its