You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
Desktop: Optimised sidebar rendering speed
This commit is contained in:
13
ReactNativeClient/lib/hooks/usePropsDebugger.ts
Normal file
13
ReactNativeClient/lib/hooks/usePropsDebugger.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import useEffectDebugger from './useEffectDebugger';
|
||||
|
||||
export default function usePropsDebugger(effectHook:any, props:any) {
|
||||
const dependencies:any[] = [];
|
||||
const dependencyNames:string[] = [];
|
||||
|
||||
for (const k in props) {
|
||||
dependencies.push(props[k]);
|
||||
dependencyNames.push(k);
|
||||
}
|
||||
|
||||
useEffectDebugger(effectHook, dependencies, dependencyNames);
|
||||
}
|
||||
Reference in New Issue
Block a user