Skip to content
Snippets Groups Projects
Unverified Commit 166f3936 authored by Jack Reed's avatar Jack Reed Committed by GitHub
Browse files

Merge pull request #3203 from ProjectMirador/plugin-connect-opts

Allow plugins to pass through options for redux connect
parents 49f4af63 0bf0913f
Branches
Tags
No related merge requests found
...@@ -40,5 +40,9 @@ export function addPluginsToCompanionWindowsRegistry(plugins) { ...@@ -40,5 +40,9 @@ export function addPluginsToCompanionWindowsRegistry(plugins) {
/** Connect plugin component to state */ /** Connect plugin component to state */
function connectPluginComponent(plugin) { 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