@adventurelabs/scout-core 1.0.92 → 1.0.93

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.
@@ -1,3 +1,4 @@
1
+ "use server";
1
2
  import { newServerClient } from "../supabase/server";
2
3
  import { EnumWebResponse, IWebResponse, } from "../types/requests";
3
4
  // Get connectivity by session id using RPC function with coordinates
@@ -45,8 +45,6 @@ export function useScoutRealtimeDevices(scoutSupabase) {
45
45
  });
46
46
  };
47
47
  useEffect(() => {
48
- if (!scoutSupabase)
49
- return;
50
48
  cleanupChannels();
51
49
  // Create devices channel for active herd
52
50
  if (activeHerdId) {
@@ -54,5 +52,5 @@ export function useScoutRealtimeDevices(scoutSupabase) {
54
52
  channels.current.push(channel);
55
53
  }
56
54
  return cleanupChannels;
57
- }, [scoutSupabase, activeHerdId, handleDeviceBroadcast]);
55
+ }, [activeHerdId]);
58
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adventurelabs/scout-core",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "description": "Core utilities and helpers for Adventure Labs Scout applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",