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

Changed order of useEffect arguments. #6

Closed
garthenweb opened this issue Jul 11, 2019 · 0 comments
Closed

Changed order of useEffect arguments. #6

garthenweb opened this issue Jul 11, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@garthenweb
Copy link
Owner

Should be somewhere in useRect using useLayoutSnapshot.

Warning: The final argument passed to useEffect changed size between renders. The order and size of this array must remain constant.

Previous: []
Incoming: [function (handler, options) {
      _this.listeners.push(_assign({
        handler: handler,
        iterations: 0,
        averageExecutionCost: 0,
        skippedIterations: 0
      }, options));

      _this.updateHasListenersState();
    }, function (h) {
      _this.listeners = _this.listeners.filter(function (_a) {
        var handler = _a.handler;
        return handler !== h;
      });

      _this.updateHasListenersState();
    }]
    in AppContainer (created by HotExportedinject-Layout)
    in HotExportedinject-Layout (created by RouterContext)
    in RouterContext (created by Router)
    in Router
    in Provider
    in I18nextProvider
    in Unknown
@garthenweb garthenweb added the bug Something isn't working label Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant