Map push
This commit is contained in:
@@ -266,7 +266,8 @@ export function subscribeToMapLayers(
|
||||
onShapeChange: (payload: RealtimeMapPayload<MapShape>) => void,
|
||||
) {
|
||||
const layerIdSet = new Set(layerIds);
|
||||
const channel = supabase.channel(`map:${layerIds.join(',')}`);
|
||||
const channelName = `map:${layerIds[0]?.slice(0, 8) ?? 'x'}-${Date.now()}`;
|
||||
const channel = supabase.channel(channelName);
|
||||
|
||||
channel
|
||||
.on('postgres_changes', { event: '*', schema: 'public', table: 'map_pins' },
|
||||
|
||||
Reference in New Issue
Block a user