Skip to content
Snippets Groups Projects
Commit 0bf0913f authored by Chris Beer's avatar Chris Beer
Browse files

Allow plugins to pass through options for redux connect

parent 49f4af63
Branches
Tags
No related merge requests found
......@@ -40,5 +40,9 @@ export function addPluginsToCompanionWindowsRegistry(plugins) {
/** Connect plugin component to state */
function connectPluginComponent(plugin) {
return connect(plugin.mapStateToProps, plugin.mapDispatchToProps)(plugin.component);
return connect(
plugin.mapStateToProps,
plugin.mapDispatchToProps,
...(plugin.connectOptions || []),
)(plugin.component);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment