beknar.askarov
beknar.askarov
This is quite interesting, It can work, there are some hooks missing in haunted. useCallback, useLayoutEffect, maybe more. I thought why not to just plug react-redux and see if it...
context works now, problem was because of not specified module extensions in react-redux, or me specifying them on my side:). different modules were loading and singleton ReduxContext singletone module was...
Works now! https://next.plnkr.co/edit/8lukaUKTSzv6HOn5 Just replaced uselayoutEffect with useffect, and useCallback was already available. Used [es-module-shims](https://github.com/guybedford/es-module-shims), so no need to enable importmaps! Thanks @guybedford, works like a charm. Do not know...
@jdin It works, for sure, it is simpler since it does not have a `context`. Well, simpler as long as all your store-connected (aka smart) components are build together with...
@matthewp Have made initial effort [here](https://github.com/askbeka/haunted-redux/tree/init) Better would be to create a haunted group to manage haunted related projects, if there will be any, but for will try to keep...
Yes, problem is with unsubscribing from context changes, since virtual components do not have a knowledge when they are removed, neither do parts. One of the way could be to...
@matthewp Not really. since directive do not have their own parts, parts can be reused across directives. consider: ```javascript html`${predicate ? ComponentOne() : ComponentTwo()}` ``` they will use the same...
I have gave it a thought and tried out couple of ideas, but there is something about how lit-html directives work that does not allow having virtual components, and I...
I prose to ditch virtual part and document better how you can use above described method. With that method you have to have "Real" component defined somewhere up in the...
Lets list pros and cons for two approaches when you need to use haunted inside application, and you do not need necessarily `webcomponents` features like shadow dom or creaintg a...