this.notices.mutate((notices) => { const index = notices.findIndex((notice) => notice.id === updated.id); notices[index].isPinned = updated.isPinned; return notices; });