GeekyAnts / GeekyAnts/react-pluggable

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

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
201
Forks
28
PR merge metrics
No merged PRs in 30d

Description

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

```javascript
this.pluginStore.executeFunction("Renderer.add", "header-right", () => Hello world!);
```

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.