GithubHelp home page GithubHelp logo

Comments (3)

Can-Sahin avatar Can-Sahin commented on July 16, 2024

Definitely go for the nested structure, as we do in our applications in the company. Here, there are only examples. I decided at the end to not put GithubRepoForm nested simply because it would complicate things for the newcomers even though it should be nested as you said.

Plus generators currently do not support nested container generation so since this is an example app I prefer to keep things simpler than perfect.

Take a look at the discussion here. There are some folder structure examples-ish

from react-boilerplate-cra-template.

phuczeero avatar phuczeero commented on July 16, 2024

@Can-Sahin Have you ever seen React warnings: "Cannot update a component from inside the function body of a different component." when trying to lazyload/inject a child container into a parent container?

I mean useInjectReducer causes store changed, which also causes re-render at parent container.

I've tried upgrade React according to this facebook/react#18178 but it can't be solved.

Updated: I've just realized I also have this trouble when organizing flatten containers. For example, C will be re-rendered, and React shows above warnings when switch route from A to B and vice-versa.

from react-boilerplate-cra-template.

UndeadBaneGitHub avatar UndeadBaneGitHub commented on July 16, 2024

@phuczeero Did you manage to resolve the issue? Besides making the component not lazy, I mean.

I am facing exactly the same one - lazyload, combinded with useInjectReducer causes the warning to pop up.

from react-boilerplate-cra-template.

Related Issues (20)

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.