Fork me on GitHub
#component
<
2016-11-18
>
josh.freckleton16:11:54

What is a good pattern for creating configuration at system-start (IE configuration that can't be created statically, and doesn't require side-effects, as components normally do) http://stackoverflow.com/questions/40681456/in-component-whats-the-best-pattern-for-creating-configuration-at-system-start

seancorfield18:11:28

Just read it in, inside your start function.

seancorfield18:11:53

Then assoc it into your component.

Lambda/Sierra19:11:58

or read it in before calling start and use the configuration data to decide how to construct the system.