// hooks/useConditionalHook.ts import useRef, useEffect, DependencyList from 'react'; export type SkipStrategy = 'once' | 'always' | 'untilChange';

// hooks/useSkipHook.ts import useEffect, useRef, DependencyList, EffectCallback from 'react'; interface SkipOptions condition: boolean; // When true, skips the hook execution debug?: boolean; // Enable logging for debugging

prevCondition.current = options.condition;

Skip Hook V -

// hooks/useConditionalHook.ts import useRef, useEffect, DependencyList from 'react'; export type SkipStrategy = 'once' | 'always' | 'untilChange';

// hooks/useSkipHook.ts import useEffect, useRef, DependencyList, EffectCallback from 'react'; interface SkipOptions condition: boolean; // When true, skips the hook execution debug?: boolean; // Enable logging for debugging skip hook v

prevCondition.current = options.condition; // hooks/useConditionalHook