We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
injector
1 parent b31567b commit 715b3afCopy full SHA for 715b3af
lib/components/TaskTesting/TaskTesting.js
@@ -74,7 +74,7 @@ export default function TaskTesting({
74
75
const taskExecution = new TaskExecution(injector, api);
76
taskExecutionRef.current = taskExecution;
77
- }, []);
+ }, [ injector ]);
78
79
useEffect(() => {
80
if (!element || !elementVariablesRef.current) {
lib/hooks/useSelectedElement.js
@@ -26,7 +26,7 @@ export function useSelectedElement(injector) {
26
return () => {
27
eventBus.off('selection.changed', handleSelection);
28
};
29
- }, [ ]);
30
31
const handleSelection = ({ newSelection }) => {
32
if (newSelection.length === 1 && isAny(newSelection[0], SUPPORTED_ELEMENT_TYPES)) {
0 commit comments