GithubHelp home page GithubHelp logo

Comments (4)

DavideCarvalho avatar DavideCarvalho commented on May 29, 2024

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

from demolay-event-management.

DavideCarvalho avatar DavideCarvalho commented on May 29, 2024

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

from demolay-event-management.

DavideCarvalho avatar DavideCarvalho commented on May 29, 2024

"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 tag, doesn't make much sense for me.
So i'm making this rule less strict FOR NOW, since the routes are basically one component.
I'm changing this for: "Route components MUST NOT be containers if they have a bunch of stuff to do inside of it. If the route is only one component (or it has a only one responsability), I can let the route be a container"

from demolay-event-management.

DavideCarvalho avatar DavideCarvalho commented on May 29, 2024

So, stuff got a little different, some of the business logic are being changed

  • ComprarComponent let me buy only one product at a time, I should change it for some kind of Cart concept, where you put stuff in your cart and then buy everything at once
  • Creation of Radio Buttons based on existing product category on database
    • Create Container responsable for getting the products categories and creating the radio buttons

from demolay-event-management.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.