Changing the order of multiple components set to the same position
How can I make it so if another addon is using the same component position as my addon, my addon's component is always after the others?
8 Replies
A hacky way of doing this would be to set the react component invisible and move it to the right place via Javascript and set it to visible again.
But there should be a better way of doing this 🤔
This would be really hard for us to implement, but I might be able to look into priorities, where each extension can assign a 1-100 number priority to their position, or decided by Blueprint if not defined.
Yeah priorities would be nice, or maybe being able to add extension ids in the config to display before/after
I feel like that would be annoying for developers to maintain though
Yeah that is true
Letting the panel admin define a load order under the extension management page might be cleaner. If they're having a problem with a specific extension they can try moving it to load last.
Yeah that could work, but I'm not sure how feasible that is for every component placement specifically, since these need to be fetched by the client through an api call
True. That would really only be feasible per-extension, not per-component.