Open snicol-icanbwell opened 1 year ago
Context (@lit-labs/context)
It would be useful to be able to provide multiple contexts at the same time; allowing a provider component to be instantiated the same way but with a dynamic array of contexts
private provider = new MultiContextProvider(this, [ [loggerContext, { log: (msg) => { console.log(`[my-app] ${msg}`); }, }], [themeContext, myTheme], [apiContext, myAPI], ]);
It's possible to create a separate provider for every injected service.
I had a conversation with @justinfagnani about this same thing in the Lit discord channel: https://discord.com/channels/1012791295170859069/1053423934453854289
Should this be an RFC?
Which package is this a feature request for?
Context (@lit-labs/context)
Description
It would be useful to be able to provide multiple contexts at the same time; allowing a provider component to be instantiated the same way but with a dynamic array of contexts
Alternatives and Workarounds
It's possible to create a separate provider for every injected service.