CUB-135: resolve merge conflict with dev + lint fixes
Dev Build / build-test (pull_request) Successful in 37s
Dev Build / build-test (pull_request) Successful in 37s
- Merge SSEProvider/ToastContainer with Dashboard/Inventory routes - Fix no-explicit-any in useSSE.ts (Record<string, unknown>) - Fix exhaustive-deps warning in InventoryPage (wrap filaments in useMemo)
This commit is contained in:
@@ -35,7 +35,7 @@ export default function InventoryPage() {
|
||||
queryFn: () => fetchFilaments(filter),
|
||||
})
|
||||
|
||||
const filaments = data?.data ?? []
|
||||
const filaments = useMemo(() => data?.data ?? [], [data?.data])
|
||||
const total = data?.total ?? 0
|
||||
const totalPages = Math.max(1, Math.ceil(total / PAGE_SIZE))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user