Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all containers on the top level of my react application #89

Open
Marckon opened this issue Oct 12, 2020 · 0 comments
Open

all containers on the top level of my react application #89

Marckon opened this issue Oct 12, 2020 · 0 comments

Comments

@Marckon
Copy link

Marckon commented Oct 12, 2020

my code is like below,

<ContainerA.Provider>
  <ContainerB.Provider>
      <App/>
  </ContainerB.Provider>
</ContainerA.Provider>

each container will be used in some child components of 'App', so it looks like I have to write the code this way. However, this may cause app re-render frequently, which is not I want. Is there any advice for me? Perhaps I can make one component subscribe a certain container in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant