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

Maximum update depth exceeded #35

Open
marcoduhe opened this issue Oct 12, 2021 · 0 comments
Open

Maximum update depth exceeded #35

marcoduhe opened this issue Oct 12, 2021 · 0 comments

Comments

@marcoduhe
Copy link

Describe the bug
I have an infinite loop bug, the message it indicates is the following:

Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
    in StoreList (created by Query)
    in Query (created by Apollo(StoreList))
    in Apollo(StoreList) (created by Query)
    in Query (created by Apollo(Apollo(StoreList)))
    in Apollo(Apollo(StoreList))
    in Unknown (created by Context.Consumer)
    in renderRuntimeInjectIntl(Apollo(Apollo(StoreList)) (created by ComponentLoader)
    in TreePathContextProvider (created by ComponentLoader)
    in ComponentLoader (created by ExtensionPoint)
    in ExtensionPoint (created by ExtensionPoint)
    in div (created by Row)
    in div (created by Row)
    in FlexLayoutContextProvider (created by Row)
    in Row (created by FlexLayout)
    in section (created by ForwardRef(Container))
    in ForwardRef(Container) (created by FlexLayout)
    in div (created by FlexLayout)
    in FlexLayout (created by ComponentLoader)
    in TreePathContextProvider (created by ComponentLoader)
    in ComponentLoader (created by ExtensionPoint)
    in ExtensionPoint (created by withErrorBoundary(ExtensionPoint))
    in ErrorBoundary (created by withErrorBoundary(ExtensionPoint))
    in withErrorBoundary(ExtensionPoint) (created by Container)
    in div (created by Container)
    in Container (created by Container)
    in div (created by Container)
    in Container (created by LayoutContainer)
    in div (created by LoadingWrapper)
    in LoadingWrapper (created by LayoutContainer)
    in LayoutContainer (created by ComponentLoader)
    in TreePathContextProvider (created by ComponentLoader)
    in ComponentLoader (created by ExtensionPoint)
    in div (created by WrapperContainer)
    in div (created by WrapperContainer)
    in WrapperContainer (created by StoreWrapper)
    in OrderItemsProvider (created by StoreWrapper)
    in OrderFormProvider (created by StoreWrapper)
    in OrderQueueProvider (created by StoreWrapper)
    in OrderFormProvider (created by Mutation)
    in Mutation (created by Apollo(OrderFormProvider))
    in Apollo(OrderFormProvider) (created by Mutation)
    in Mutation (created by Apollo(Apollo(OrderFormProvider)))
    in Apollo(Apollo(OrderFormProvider)) (created by Mutation)
    in Mutation (created by Apollo(Apollo(Apollo(OrderFormProvider))))
    in Apollo(Apollo(Apollo(OrderFormProvider))) (created by Mutation)
    in Mutation (created by Apollo(Apollo(Apollo(Apollo(OrderFormProvider)))))
    in Apollo(Apollo(Apollo(Apollo(OrderFormProvider)))) (created by Mutation)
    in Mutation (created by Apollo(Apollo(Apollo(Apollo(Apollo(OrderFormProvider))))))
    in Apollo(Apollo(Apollo(Apollo(Apollo(OrderFormProvider))))) (created by Query)
    in Query (created by Apollo(Apollo(Apollo(Apollo(Apollo(Apollo(OrderFormProvider)))))))
    in Apollo(Apollo(Apollo(Apollo(Apollo(Apollo(OrderFormProvider)))))) (created by StoreWrapper)
    in ToastManager (created by ToastProvider)
    in ToastProvider (created by StoreWrapper)
    in PWAProvider (created by Query)
    in Query (created by Apollo(PWAProvider))
    in Apollo(PWAProvider) (created by StoreWrapper)
    in PixelProvider (created by StoreWrapper)
    in StoreWrapper (created by ComponentLoader)
    in TreePathContextProvider (created by ComponentLoader)
    in ComponentLoader (created by ExtensionPoint)
    in ExtensionPoint (created by ExtensionPoint)
    in DefaultChallenge (created by ComponentLoader)
    in TreePathContextProvider (created by ComponentLoader)
    in ComponentLoader (created by ExtensionPoint)
    in ExtensionPoint (created by ExtensionPoint)
    in ExtensionPoint (created by withErrorBoundary(ExtensionPoint))
    in ErrorBoundary (created by withErrorBoundary(ExtensionPoint))
    in withErrorBoundary(ExtensionPoint) (created by RenderPage)
    in MaybeContext (created by RenderPage)
    in RenderPage (created by RenderProvider)
    in div (created by RenderProvider)
    in PrefetchContextProvider (created by RenderProvider)
    in IntlProvider (created by RenderProvider)
    in ApolloProvider (created by RenderProvider)
    in TreePathContextProvider (created by RenderProvider)
    in RenderContextProvider (created by RenderProvider)
    in RenderProvider
    in RenderProvider (created by WithPerformanceMeasures)
    in WithPerformanceMeasures
    in Unknown (created by WithDevice)
    in WithDevice

To Reproduce
Go to https://storelocator--marcoherrada.myvtex.com/stores (Only VTEX members)

Expected behavior
I want to know what this loop is due to since it consumes the ram memory.

Screenshots
Captura de Pantalla 2021-10-11 a la(s) 19 15 57

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