ID used for debugging
Called after an item is added to the store. This can be useful to store an item's related data in other stores.
Example:
class UserStore {
users = new ItemStore<User>({
onItemAdded: (user) => {
this.rootStore.mediaStore.add(user.profilePhoto)
}
})
constructor(private rootStore) {}
}
Generated using TypeDoc
Function used to get the ID of each item. By default, will use
item.id
if available