#7300 create reset function #478

Merged
jorgep merged 9 commits from 7300-createResetFnArrayData into dev 2024-07-04 10:03:41 +00:00
Member
No description provided.
jorgep added 1 commit 2024-06-24 14:18:33 +00:00
gitea/salix-front/pipeline/pr-dev This commit looks good Details
9956561e4c
chore: refs #7300 wip: create reset function
jorgep changed title from chore: refs #7300 wip: create reset function to WIP: #7300 create reset function 2024-06-24 14:18:44 +00:00
jorgep added 1 commit 2024-06-27 14:49:03 +00:00
jorgep added 1 commit 2024-06-28 10:52:46 +00:00
jorgep added 1 commit 2024-06-28 13:11:08 +00:00
jorgep added 1 commit 2024-06-28 15:51:22 +00:00
jorgep added 1 commit 2024-07-01 07:17:31 +00:00
jorgep added 1 commit 2024-07-03 15:15:44 +00:00
jorgep added 1 commit 2024-07-03 15:53:41 +00:00
gitea/salix-front/pipeline/pr-dev This commit looks good Details
c2333c9455
chore: refs #7300 reset arrayData
jorgep reviewed 2024-07-03 15:55:23 +00:00
@ -95,6 +95,8 @@ onMounted(async () => {
mounted.value = true;
});
onBeforeUnmount(() => arrayData.reset());
Author
Member

Cuando haces scroll en una sección List , sales, vuelves a entrar y haces scroll otra vez, se conserva el skip. Con esto se resetean los valores al salir.

Cuando haces scroll en una sección List , sales, vuelves a entrar y haces scroll otra vez, se conserva el skip. Con esto se resetean los valores al salir.
jorgep reviewed 2024-07-03 15:56:53 +00:00
@ -187,7 +191,6 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
store.page += 1;
await fetch({ append: true });
updateStateParams();
Author
Member

Si hacemos un router.replace te redirige, por tanto al hacer scroll, te lleva al principio. Lo dejo en esta rama porque es un cambio pequeñito.

Si hacemos un router.replace te redirige, por tanto al hacer scroll, te lleva al principio. Lo dejo en esta rama porque es un cambio pequeñito.
jorgep requested review from alexm 2024-07-03 15:57:03 +00:00
jorgep changed title from WIP: #7300 create reset function to #7300 create reset function 2024-07-03 15:57:13 +00:00
jorgep added 1 commit 2024-07-04 07:29:47 +00:00
alexm approved these changes 2024-07-04 10:00:06 +00:00
jorgep merged commit 3585f651b8 into dev 2024-07-04 10:03:41 +00:00
jorgep deleted branch 7300-createResetFnArrayData 2024-07-04 10:03:41 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/salix-front#478
No description provided.