framework
framework copied to clipboard
suggestions for layered config
Merging the result of the function with its argument feels surprising to me. I'm suggesting this alternative, where we only take the result of the function (the function can do {...config, title: "new title"}
if that is what the user wants).
Also, I'm suggesting to await, so the exported function could be async? (Or, we wait for a real-world use case before we do that?)