react-pluggable icon indicating copy to clipboard operation
react-pluggable copied to clipboard

Renderer.add should allow us to inject a component at the specified index

Open himanshu-satija opened this issue 4 years ago • 0 comments

Currently it is not possible to inject a component at a specific index. It is just pushed to the end in the given slot.

this.pluginStore.executeFunction("Renderer.add", "header-right", () => <Button>Hello world!</Button>);

While we can achieve the required order by changing the order of installation of plugins, it is not the best way because the order of installation should be independent of the order of components in UI.

We need to be able to specify an index with this method.

himanshu-satija avatar Feb 11 '21 13:02 himanshu-satija