Skip to content

Fix/remove group and task listeners#90

Open
ofr1tz wants to merge 3 commits into
mainfrom
fix/remove-group-and-task-listeners
Open

Fix/remove group and task listeners#90
ofr1tz wants to merge 3 commits into
mainfrom
fix/remove-group-and-task-listeners

Conversation

@ofr1tz

@ofr1tz ofr1tz commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Replace setting listeners to groups and tasks from project view by one-time reading to avoid potential misalignment of saved results.

Comment thread src/views/ProjectView.vue
:tasks="tasks"
:tutorial="tutorial"
:tutorialTasks="tutorialTasks"
@created="handleTaskComponentCreated"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also add to clear the whole component to be extra safe.

:key="group.groupId"

Comment thread src/views/ProjectView.vue
(g) => g.requiredCount > 0 && !completed.includes(g.groupId),
async bindTaskGroup() {
this.tasks = null
const snapshot = await get(getGroupsQuery(this.projectId))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we be sure that requiredCount has been updated at this point.

Although, it should be alright even if user is presented a page they have already swiped (sometimes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants