So I'm implementing my first Elm web app and it's getting bigger every day.
In my root model (in Main.elm) I put the `config` record containing the HTTP information to talk to the backend. I created an `EditUser` module with it's own model which doesn't include the config. Now I would like to start making HTTP calls from that module but I can't because it doesn't have the necessary `config` record to do so. What is the best way to solve my issue while keeping the best possible architecture for my app? - I don't want to pass the HTTP config to the `EditUser` model because it would be duplication. - I don't want to forward the action to main because it's not its role to deal with user updates. Somehow I could create an `Api` module that would be the only one containing the HTTP config and I would import it from wherever I need it. Would it be a good approach? -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
