Added "use client" to hooks.

This commit is contained in:
Mike Cao
2024-02-02 22:20:13 -08:00
parent 400657d59e
commit 238e6efee2
33 changed files with 40 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
'use client';
import { useState, useEffect, useRef } from 'react';
export function useSticky({ enabled = true, threshold = 1 }) {