LinkedSoftwareDependencies / Components.js

🧩 A semantic dependency injection framework
https://componentsjs.readthedocs.io/
Other
41 stars 6 forks source link

Append to array or collection of a component configuration #113

Closed joeitu closed 10 months ago

joeitu commented 1 year ago

Issue type:


Description:

( From #112 )

The motivation is when you have to write two separate components that both need to add a key/value to an array of a component config.

Currently, the only way to achieve this is by overriding the component config, which is problematic when to independent component wants to append ( and therefore override ) the same array.

An example with two CSS components: ModuleOne needs to add its own js script to CSS' well-known folder. To achieve that it will override urn:solid-server:default:StaticAssetHandler in config/http/static/default.json ModuleTwo needs to do the same. When adding both ModuleOne and ModuleTwo to the CSS graph, only the script from ModuleTwo will be available in the well-known folder. Because ModuleOne override will be in turn overridden by MoculeTwo.

github-actions[bot] commented 1 year ago

Thanks for the suggestion!

joachimvh commented 10 months ago

Closing as this can be done as discussed in the linked issue.