@hed-hog/tag 0.0.276 → 0.0.279

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,3 @@
1
- ```markdown
2
1
  # @hed-hog/tag
3
2
 
4
3
  ## 1. Visão geral do módulo
@@ -351,4 +350,3 @@ Resposta:
351
350
  ---
352
351
 
353
352
  Este módulo é parte integrante do monorepo HedHog e deve ser utilizado conforme as regras de autenticação e autorização definidas.
354
- ```
@@ -69,10 +69,9 @@ export default function TagPage() {
69
69
  const [pageSize, setPageSize] = useState(10);
70
70
  const { request } = useApp();
71
71
 
72
- const {
73
- data: { data, total },
74
- refetch: refetchTag,
75
- } = useQuery<PaginationResult<Tag>>({
72
+ const { data: tagResult, refetch: refetchTag } = useQuery<
73
+ PaginationResult<Tag>
74
+ >({
76
75
  queryKey: ['tag', debouncedSearch, page, pageSize],
77
76
  queryFn: async () => {
78
77
  const response = await request({
@@ -85,13 +84,8 @@ export default function TagPage() {
85
84
  });
86
85
  return response.data as PaginationResult<Tag>;
87
86
  },
88
- initialData: {
89
- data: [],
90
- total: 0,
91
- page: 1,
92
- pageSize: 10,
93
- },
94
- });
87
+ });
88
+ const { data = [], total = 0 } = tagResult ?? {};
95
89
 
96
90
  const { data: statsData, refetch: refetchStats } = useQuery<any>({
97
91
  queryKey: ['tag-stats'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/tag",
3
- "version": "0.0.276",
3
+ "version": "0.0.279",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -11,9 +11,9 @@
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api-prisma": "0.0.5",
13
13
  "@hed-hog/api-pagination": "0.0.6",
14
- "@hed-hog/core": "0.0.276",
15
- "@hed-hog/api": "0.0.4",
16
- "@hed-hog/api-locale": "0.0.13"
14
+ "@hed-hog/core": "0.0.279",
15
+ "@hed-hog/api-locale": "0.0.13",
16
+ "@hed-hog/api": "0.0.4"
17
17
  },
18
18
  "exports": {
19
19
  ".": {