Enable server-side clustering on all catalog pages
All checks were successful
Build Docker Image / build (push) Successful in 4m37s
All checks were successful
Build Docker Image / build (push) Successful in 4m37s
- Add clusterNodeType prop to CatalogPage - Update useClusteredNodes to accept nodeType parameter - Enable server clustering on /offers and /suppliers pages - Add hoveredId sync on /offers page - Remove hover:shadow-lg animation from Card
This commit is contained in:
@@ -9,7 +9,10 @@ export interface MapBounds {
|
||||
zoom: number
|
||||
}
|
||||
|
||||
export function useClusteredNodes(transportType?: Ref<string | undefined>) {
|
||||
export function useClusteredNodes(
|
||||
transportType?: Ref<string | undefined>,
|
||||
nodeType?: Ref<string | undefined>
|
||||
) {
|
||||
const { client } = useApolloClient('publicGeo')
|
||||
|
||||
const clusteredNodes = ref<ClusterPointType[]>([])
|
||||
@@ -26,7 +29,8 @@ export function useClusteredNodes(transportType?: Ref<string | undefined>) {
|
||||
east: bounds.east,
|
||||
north: bounds.north,
|
||||
zoom: Math.floor(bounds.zoom),
|
||||
transportType: transportType?.value
|
||||
transportType: transportType?.value,
|
||||
nodeType: nodeType?.value
|
||||
},
|
||||
fetchPolicy: 'network-only'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user