refactor(nodelookup): use as normale store item

This commit is contained in:
moklick
2021-11-04 14:03:22 +01:00
parent 1b390e103d
commit 5547b0d6cc
5 changed files with 26 additions and 28 deletions
-12
View File
@@ -1,12 +0,0 @@
import { useRef } from 'react';
import { useStoreApi } from '../store';
function useNodeLookup() {
const store = useStoreApi();
const nodeLookup = useRef(store.getState().nodeLookup);
return nodeLookup.current;
}
export default useNodeLookup;