Open geocine opened 5 years ago
createContext should be able to take a second argument that takes the component options just like component()
does.
In my opinion Consumer component always has to render into light DOM. Just like react behaves. I left it that way because there was no option to render to light DOM before.
Users will always expect a template that they see at author time to be in light dom since they might want to style it etc. And shadow dom has to be hidden in component implementation.
On Thu, 14 Mar 2019, 18:35 Matthew Phillips, notifications@github.com wrote:
createContext should be able to take a second argument that takes the component options just like component() does.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matthewp/haunted/issues/75#issuecomment-472979973, or mute the thread https://github.com/notifications/unsubscribe-auth/AC3Imrq0yktSJ2ZJms2x_RnSEaASL53aks5vWohtgaJpZM4b0apY .
So in other words, your implantation has to replace current one
On Thu, 14 Mar 2019, 19:34 Beknar Askarov, beknaraskarov@gmail.com wrote:
In my opinion Consumer component always has to render into light DOM. Just like react behaves. I left it that way because there was no option to render to light DOM before.
Users will always expect a template that they see at author time to be in light dom since they might want to style it etc. And shadow dom has to be hidden in component implementation.
On Thu, 14 Mar 2019, 18:35 Matthew Phillips, notifications@github.com wrote:
createContext should be able to take a second argument that takes the component options just like component() does.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matthewp/haunted/issues/75#issuecomment-472979973, or mute the thread https://github.com/notifications/unsubscribe-auth/AC3Imrq0yktSJ2ZJms2x_RnSEaASL53aks5vWohtgaJpZM4b0apY .
Consumer and Provider have to be virtual components, but since there is now teardown functioning properly and other bugs with virtual components they are components right now
On Thu, 14 Mar 2019, 19:35 Beknar Askarov, beknaraskarov@gmail.com wrote:
So in other words, your implantation has to replace current one
On Thu, 14 Mar 2019, 19:34 Beknar Askarov, beknaraskarov@gmail.com wrote:
In my opinion Consumer component always has to render into light DOM. Just like react behaves. I left it that way because there was no option to render to light DOM before.
Users will always expect a template that they see at author time to be in light dom since they might want to style it etc. And shadow dom has to be hidden in component implementation.
On Thu, 14 Mar 2019, 18:35 Matthew Phillips, notifications@github.com wrote:
createContext should be able to take a second argument that takes the component options just like component() does.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matthewp/haunted/issues/75#issuecomment-472979973, or mute the thread https://github.com/notifications/unsubscribe-auth/AC3Imrq0yktSJ2ZJms2x_RnSEaASL53aks5vWohtgaJpZM4b0apY .
I know it is not possible right now, so I just copied it like so