mitosis
mitosis copied to clipboard
setContext to pass a factory function
it would be great if we could pass a factory function to setContext
setContext(() => createInjector());
setContext(createInjector);
setContext(() => {
return {
get: (token) => inject(token);
};
});
@steve8708 what do you think?
Oh interesting, yeah if this can map cleanly to the different framework outputs then totally works for me 👍🏼