Skip to content

Dispatching "local" actions from an outside component #18

@tnrich

Description

@tnrich

Hey there,

Is there a way to call "locally-scoped" actions from an outside component.

Say I have a @Local wrapped component

And I create it in another component:

<VisualizerPlusButtons>
<DNAVisualizer identity='visualizer1'/>
<button onClick={()={ /* call a visualizer1 action here*/ }}>

<DNAVisualizer identity='visualizer2'/>
<button onClick={()={ /* call a visualizer2 action here*/ }}>

</VisualizerPlusButton>

Is it possible to do this currently?

Thanks,
Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions