Skip to content

Commit f90e081

Browse files
committed
fix: refactor fe cache usage
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent 6d54c98 commit f90e081

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

frontend/src/modules/member/pages/member-list-page.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ const membersQueryKey = computed(() => [
149149
TanstackKey.MEMBERS_LIST,
150150
selectedProjectGroup.value?.id,
151151
queryParams.value.search,
152-
filters.value, // Use filters.value directly to make it reactive
153152
queryParams.value.offset,
154153
queryParams.value.limit,
155154
queryParams.value.orderBy,
@@ -264,17 +263,6 @@ const onPaginationChange = ({
264263
pagination.value.perPage = perPage;
265264
};
266265
267-
// Watch for filter changes to ensure cache invalidation
268-
watch(
269-
filters,
270-
() => {
271-
// Reset to first page when filters change
272-
pagination.value.page = 1;
273-
queryParams.value.offset = 0;
274-
},
275-
{ deep: true },
276-
);
277-
278266
watch(
279267
selectedProjectGroup,
280268
(newProjectGroup, oldProjectGroup) => {

frontend/src/modules/organization/pages/organization-list-page.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ const organizationsQueryKey = computed(() => [
146146
TanstackKey.ORGANIZATIONS_LIST,
147147
selectedProjectGroup.value?.id,
148148
queryParams.value.search,
149-
filters.value, // Use filters.value directly to make it reactive
150149
queryParams.value.offset,
151150
queryParams.value.limit,
152151
queryParams.value.orderBy,
@@ -249,17 +248,6 @@ const onPaginationChange = ({
249248
pagination.value.perPage = perPage;
250249
};
251250
252-
// Watch for filter changes to ensure cache invalidation
253-
watch(
254-
filters,
255-
() => {
256-
// Reset to first page when filters change
257-
pagination.value.page = 1;
258-
queryParams.value.offset = 0;
259-
},
260-
{ deep: true },
261-
);
262-
263251
watch(
264252
selectedProjectGroup,
265253
(newProjectGroup, oldProjectGroup) => {

0 commit comments

Comments
 (0)