Review the linked reference implementation for useConditionalEffect from alexkrolick/use conditional effect. Examine existing hooks in the streamich/react use repository, such as useDebounce or useThrottle, to understand the coding and testing conventions. Implement the hook ensuring it works with React's useEffect and handle dependency arrays correctly. Add appropriate tests and documentation.