mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Initial release
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