0
votes

Currently I have four contexts that wrap all my routes (as shown bellow) so that I don't have lost providers all around my app screens and components. As far as I know, when I modify the value of a context variable, every component that uses it will update too, what can lead to memory problems, but my question is: if my providers, that wrap all routes/screens, even the ones that uses no context variable, may cause the same memory related problems.

 <AuthProvider>
  <SelectedBranchProvider>
    <SelectedEventProvider>
      <DrawerFormProvider>
        <RightDrawerNavigator />
      </DrawerFormProvider>
    </SelectedEventProvider>
  </SelectedBranchProvider>
</AuthProvider>