mirror of
https://github.com/wassname/talk.git
synced 2026-07-31 12:50:48 +08:00
Plugins can trigger own actions with core reducers
This commit is contained in:
@@ -3,9 +3,10 @@ import {importer as injectPlugins} from 'coral-framework/helpers/importer';
|
||||
|
||||
class Slot extends Component {
|
||||
render() {
|
||||
const {pluginProps: actions, ...props} = this.props;
|
||||
return (
|
||||
<div>
|
||||
{injectPlugins(this.props)}
|
||||
{injectPlugins({...props, actions})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user