You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello !
I am trying to track entity property changes with akita's entity store.
I wanna react whenever a property updates in an entity, but selecting all entities and manually diffing is too expensive (I'd have to save a copy of the store)
and subscribing to selectEntityAction([EntityActions.Update]). only gives me the ID of the node that updates, but I don't know what the update was
right now, I'm doing it with akitaPreUpdateEntity, just comparing between the two states and publishing an event when a property I'm looking for changes
is there a better way to do this using the query ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello !
I am trying to track entity property changes with akita's entity store.
I wanna react whenever a property updates in an entity, but selecting all entities and manually diffing is too expensive (I'd have to save a copy of the store)
and subscribing to
selectEntityAction([EntityActions.Update]).
only gives me the ID of the node that updates, but I don't know what the update wasright now, I'm doing it with
akitaPreUpdateEntity
, just comparing between the two states and publishing an event when a property I'm looking for changesis there a better way to do this using the query ?
Beta Was this translation helpful? Give feedback.
All reactions