Skip to content

Commit

Permalink
fix: Plugins were re-registering on every re-render (#1613)
Browse files Browse the repository at this point in the history
- Forgot dependency array for `useEffect` hook
  • Loading branch information
mofojed authored Nov 2, 2023
1 parent 9e8b7ae commit 5977389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dashboard-core-plugins/src/WidgetLoaderPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function WidgetLoaderPlugin(
return () => {
deregisterFns.forEach(deregister => deregister());
};
});
}, [registerComponent, supportedTypes]);

/**
* Listen for panel open events so we know when to open a panel
Expand Down

0 comments on commit 5977389

Please sign in to comment.