mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-02-01 17:38:42 +03:00
update
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { useEffect, useLayoutEffect } from 'react';
|
||||
|
||||
function useIsomorphicLayoutEffect(callback, deps) {
|
||||
// eslint-disable-next-line
|
||||
if (typeof window === 'undefined') return useEffect(callback, deps);
|
||||
return useLayoutEffect(callback, deps);
|
||||
}
|
||||
|
||||
export { useIsomorphicLayoutEffect };
|
||||
Reference in New Issue
Block a user