Skip to content

Commit

Permalink
Item: Add IsDirty flag to Meta struct
Browse files Browse the repository at this point in the history
This allows consumers to mark an object as dirty to signal to later consumers to discard the object and fetch a new one.
  • Loading branch information
SchoolGuy committed Sep 12, 2024
1 parent fa55bac commit 5c675ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions item.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ type Value[T any] struct {
type ItemMeta struct {
IsFlattened bool
IsResolved bool
// This flag signals if the item was modified by a called method server-side.
IsDirty bool
}

// Item general fields
Expand Down

0 comments on commit 5c675ac

Please sign in to comment.