Open DavideCarvalho opened 6 years ago
Well, redux bindings are more react-ish now and waaaaay more elegant, there is a but in it, tho... I couldn't put the reducers I wanted inside props properties. Seems like Hybrids only accepts a flat tree of properties, so for now, I'm using only getState() inside of the props, so the props has all the reducers inside of it (It works, but I dislike it). Talking to Hybrids owner, seems like I can do something like this:
const Component = {
props: connect(store, ({ myReducer, myOtherThing } ) => ({ myReducer, myOtherThing })),
mergedThings: ({ props }) => props.myReducer + props.myOtherThing,
}
Maybe put this "mergedThings" logic inside my redux binding for Hybrids. I hope it works
E2E tests are out of league of now. Cypress can't access shadowDom for now. Maybe Selenium or WebDriver could do the trick, but I wanted something to make E2E tests easier, and Cypress definitely is the main choice. There is an issue on Cypress about it, maybe i'll wait for it a little longer and see how this goes before trying Selenium or WebDriver
"Route components MUST NOT be containers, they are just High Order Components, and their object is just to compose the view."
This is true, but routes like Entrada ("www.system.com/") has only one form, this would make it only call
So, stuff got a little different, some of the business logic are being changed
Okay, now that I'm not beeing pushed to deploy it ASAP, I can start to take care of the things i've done. I'll try to make a more react-ish approach:
And if everything is alright, I can think in something to test the components, something like Cypress