redux-store-element
redux-store-element copied to clipboard
Update documentation
Especially mention the use of bare specifiers
Once Polymer 3 is out and the world is switching to ES Modules, switch this entire repo to ES Modules, and rewrite the documentation with those examples. Also...maybe get rid of the Polymer examples and use lit-html directly
I've already switched to ES Modules, I've mentioned bare specifiers, and so now I just need to use lit-html for the examples
Have you tried using lit-html with this element? Using lit-extended, I seem unable to set the root-reducer to the value of a function, i.e. no initialization happens.
I haven't yet. What version of redux-store-element are you using? The latest version uses bare specifiers, so you'll need to use polyserve or Zwitterion or another server that rewrites. Besides that, I'll see if I can check it out soon and debug what's going on
@ernsheong Try using the rootReducer attribute instead of the root-reducer attribute to set the rootReducer property.
@lastmjs thanks for taking time to repro. I'm on latest npm release 2.0.6. Using https://github.com/PolymerLabs/lit-element to encapsulate lit-html, and using webpack to build.
Setting rootReducer attribute directly works! Possibly related to how lit currently works: https://github.com/PolymerLabs/lit-element/issues/29 (it doesn't process hypenated attributes for now)
(Sorry for hijacking your documentation issue)