@formo/analytics 1.13.4-alpha.13 → 1.13.4-alpha.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formo/analytics",
3
- "version": "1.13.4-alpha.13",
3
+ "version": "1.13.4-alpha.14",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/getformo/sdk.git"
@@ -29,7 +29,6 @@ const InitializedAnalytics = ({
29
29
  children,
30
30
  }: FormoAnalyticsProviderProps) => {
31
31
  const [sdk, setSdk] = useState<FormoAnalytics | undefined>();
32
- const [isInitialized, setIsInitialized] = useState(false);
33
32
  const initializedStartedRef = useRef(false);
34
33
 
35
34
  const initializeFormoAnalytics = async (apiKey: string, options: any) => {
@@ -39,8 +38,6 @@ const InitializedAnalytics = ({
39
38
  console.log("FormoAnalytics SDK initialized successfully");
40
39
  } catch (error) {
41
40
  console.error("Failed to initialize FormoAnalytics SDK", error);
42
- } finally {
43
- setIsInitialized(true); // Ensure UI renders even after failure
44
41
  }
45
42
  };
46
43
 
@@ -55,11 +52,6 @@ const InitializedAnalytics = ({
55
52
  initialize();
56
53
  }, [apiKey, options]);
57
54
 
58
- if (!isInitialized) {
59
- // Optionally show a loading state until initialization attempt finishes
60
- return <div>Loading analytics...</div>;
61
- }
62
-
63
55
  return (
64
56
  <FormoAnalyticsContext.Provider value={sdk}>
65
57
  {children}