chisholmd
chisholmd
OK I lied, this is not working. Is it by design that the stateChange function is called each time a state property is updated, and before return state is called?
Ok I found a way to be able to group my state values, and still ahve the changes registered. ``` setExplorerSelectedBomId(state, payload) { var tmp = JSON.parse(JSON.stringify(state.explorer)); tmp.bomId = payload...
Ok Never mind.... The internet tells me to "keep your state flat". So I will trade _'s for .'s state.explorer_bomId state.explorer_parId etc
Ok I have a halfway workable solution: on subscribe I return the index of the new entry in the callbacks array then I pass it back to a new unsubscribe...
ok will a bit better again. in beedle I maintain an incrementor and store that will the callbacks. So the array now has objects instead of just anonymous functions. {idx:...
added a "selected" boolean to my data.json then in paper-tree-node.html connectedCallback() { super.connectedCallback(); if(this.selected){ this.select(); } } Seems to do the trick nicely
I tried to use this in my 2.0 project and ran into all sorts of issues. But I don't think they are too much to sort out. To my untrained...
Thanks and I will do that :)
The problem I am having with both versions is that when I install paper-menu it asks me to select versions of about 3 or 4 other dependencies and I never...
Ugh I downloaded wrong branch...