* feat: add theme berry * docs: add development notes * fix: fix blank page * chore: update implementation * fix: fix package.json * chore: update ui copy --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
19 lines
339 B
JavaScript
19 lines
339 B
JavaScript
import { useEffect, useRef } from 'react';
|
|
|
|
// ==============================|| ELEMENT REFERENCE HOOKS ||============================== //
|
|
|
|
const useScriptRef = () => {
|
|
const scripted = useRef(true);
|
|
|
|
useEffect(
|
|
() => () => {
|
|
scripted.current = true;
|
|
},
|
|
[]
|
|
);
|
|
|
|
return scripted;
|
|
};
|
|
|
|
export default useScriptRef;
|