Skip to content

Commit 77e8452

Browse files
committed
Use useQueue from @react-hookz/web & drop custom implementation
1 parent e565364 commit 77e8452

File tree

3 files changed

+1
-104
lines changed

3 files changed

+1
-104
lines changed

packages/analytics-nextjs/src/hooks/useAnalytics.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useLocalStorageValue, useSyncedRef } from '@react-hookz/web';
1+
import { useLocalStorageValue, useQueue, useSyncedRef } from '@react-hookz/web';
22
import { usePlausible } from 'next-plausible';
33
import { useCallback, useEffect } from 'react';
44

@@ -7,8 +7,6 @@ import { stringify } from '../lib';
77
import type { DeferredIdentity, PrezlyMeta } from '../types';
88
import { TrackingPolicy } from '../types';
99

10-
import { useQueue } from './useQueue';
11-
1210
const DEFERRED_IDENTITY_STORAGE_KEY = 'prezly_ajs_deferred_identity';
1311

1412
const NULL_USER = {

packages/analytics-nextjs/src/hooks/useQueue.test.tsx

Lines changed: 0 additions & 63 deletions
This file was deleted.

packages/analytics-nextjs/src/hooks/useQueue.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)