riot-js

Open full view…

[bug] swapped subcomponents(data-is={component}) will not inherit any opts

cybervaldez
Tue, 13 Dec 2016 03:02:21 GMT

<div data-is="{component}" data="{data}"></div> on first mount, the component loaded will have it's opts.data in it as expected. if the component expression changes(after parent does an update) however this unmounts the previous component but after mounting the new one, that will not have any opts.data. My current work around in my subcomponent is just access the parent property since self.parent seems to be working well.